{"id":43991813,"url":"https://github.com/optiop/postgres-grafana-on-ecs","last_synced_at":"2026-02-07T11:03:54.365Z","repository":{"id":226741730,"uuid":"769264490","full_name":"optiop/postgres-grafana-on-ecs","owner":"optiop","description":"A showcase of visualizing Postgresql data using Grafana deployed as containers on Amazon Elastic Container Service (ECS).","archived":false,"fork":false,"pushed_at":"2024-12-02T20:45:53.000Z","size":672,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-02T21:34:41.233Z","etag":null,"topics":["blog","elasticcontainerservice","grafana","optiop","postgresql","visualization"],"latest_commit_sha":null,"homepage":"https://optiop.org/blog/content/visualize-postgres-data-using-grafana-ecs/index.html","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/optiop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-08T17:23:27.000Z","updated_at":"2024-12-02T20:45:56.000Z","dependencies_parsed_at":"2024-12-02T21:38:50.145Z","dependency_job_id":null,"html_url":"https://github.com/optiop/postgres-grafana-on-ecs","commit_stats":null,"previous_names":["optiop/postgres-grafana-on-ecs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/optiop/postgres-grafana-on-ecs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optiop%2Fpostgres-grafana-on-ecs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optiop%2Fpostgres-grafana-on-ecs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optiop%2Fpostgres-grafana-on-ecs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optiop%2Fpostgres-grafana-on-ecs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/optiop","download_url":"https://codeload.github.com/optiop/postgres-grafana-on-ecs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optiop%2Fpostgres-grafana-on-ecs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29193089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","elasticcontainerservice","grafana","optiop","postgresql","visualization"],"created_at":"2026-02-07T11:03:40.490Z","updated_at":"2026-02-07T11:03:54.356Z","avatar_url":"https://github.com/optiop.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://optiop.org#gh-light-mode-only\"\u003e\n    \u003cimg src=\"./docs/images/optiop.logo.long.light.png#gh-light-mode-only\" style=\"height: 48px\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://optiop.org#gh-dark-mode-only\"\u003e\n    \u003cimg src=\"./docs/images/optiop.logo.long.dark.png#gh-dark-mode-only\" style=\"height: 48px\"\u003e\n  \u003c/a\u003e\n\n  \u003ch1\u003e\n  Visualize PostgreSql data using Grafana deployed on Amazon Elastic Container Service (ECS)\n  \u003c/h1\u003e\n\n  \u003ca href=\"https://optiop.org#gh-light-mode-only\"\u003e\n    \u003cimg src=\"./docs/images/banner.light.png#gh-light-mode-only\" style=\"height: 48px\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://optiop.org#gh-dark-mode-only\"\u003e\n    \u003cimg src=\"./docs/images/banner.dark.png#gh-dark-mode-only\" style=\"height: 48px\"\u003e\n  \u003c/a\u003e\n\n  \u003cbr\u003e\n\n[\n  ![Discord](https://img.shields.io/discord/1216332587778179072)\n](https://discord.gg/WkA4PM2dna)\n[\n  ![Blog](https://img.shields.io/badge/blog-optiop-blue)\n](https://optiop.org/blog/content/visualize-postgres-data-using-grafana-ecs/index.html)\n[\n  ![license](https://img.shields.io/github/license/optiop/postgres-grafana-on-ecs)\n](./LICENSE)\n\n\u003c/div\u003e\n\nThe repository contains the terraform code to deploy Grafana and PostgreSql \non Amazon Elastic Container Service (ECS). \n\n## Table of Contents\n* [Architecture](#architecture)\n* [Code Structure](#code-structure)\n* [Usage](#usage)\n* [References](#references)\n\n\n## Cloud Architecture\n\nThe following diagram shows the architecture of the deployment. It consists of \ntwo services `grafana` and `postgres` running on ECS. The `grafana` service\nis connected to the `postgres` service using the official Grafana PostgreSql\nplugin. Through this connection, Grafana can visualize the data stored in the\nPostgreSql database. Furthermore, the `grafana` service is exposed to the\ninternet using an Elastic Load Balancer (ELB).\n\n![Architecture](./docs/images/deployment.dark.png)\n\n## Code Structure\n\nThe repository contains the following files and directories:\n\n```plaintext\n├── LICENSE\n├── README.md\n├── docs\n├── ops\n│   ├── ecs\n│   │   ├── README.md\n│   │   ├── main.tf\n│   │   ├── modules\n│   │   │   ├── cluster\n│   │   │   ├── grafana\n│   │   │   ├── postgres\n│   │   │   └── vpc\n│   │   ├── provider.tf\n│   │   └── variables.tf\n│   └── repository\n│       └── ecr.tf\n└── src\n    ├── docker-compose.yaml\n    ├── grafana\n    │   ├── Dockerfile\n    │   ├── grafana.ini\n    │   └── provisioning\n    │       ├── dashboards\n    │       │   └── dashboards.yaml\n    │       └── datasources\n    │           └── postgres.yaml\n    └── postgres\n        ├── Dockerfile\n        └── init.sql\n```\n\n* `src` contains the source code for the `grafana` and `postgres` services.\n* `ops/repository` contains the terraform code to create the Elastic Container\n  Registry (ECR) repository, and required IAM roles.\n* `ops/ecs` contains the terraform code to create the ECS cluster, services,\n\n## Usage \n\n1. Follow the instructions in the [ops/repository/README.md](./ops/repository/README.md)\n   to create the Elastic Container Registry (ECR) repository and required IAM roles.\n2. Follow the instruction in the [ops/ecs/README.md](./ops/ecs/README.md) to deploy\n   the `grafana` and `postgres` services on Amazon Elastic Container Service (ECS).\n\n\n## References\n* [Grafana](https://grafana.com/)\n* [PostgreSql](https://www.postgresql.org/)\n* [Amazon Elastic Container Service](https://aws.amazon.com/ecs/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptiop%2Fpostgres-grafana-on-ecs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptiop%2Fpostgres-grafana-on-ecs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptiop%2Fpostgres-grafana-on-ecs/lists"}