{"id":22679817,"url":"https://github.com/contember/prometheus-rds-service-discovery","last_synced_at":"2026-06-29T11:32:05.520Z","repository":{"id":219284374,"uuid":"747723331","full_name":"contember/prometheus-rds-service-discovery","owner":"contember","description":"Prometheus HTTP Service Discovery for AWS RDS cluster instances","archived":false,"fork":false,"pushed_at":"2024-07-19T11:54:44.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-11-10T01:02:15.566Z","etag":null,"topics":["aws-rds","prometheus","service-discovery"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/contember.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-01-24T14:13:10.000Z","updated_at":"2025-01-13T07:17:36.000Z","dependencies_parsed_at":"2024-12-09T19:11:10.983Z","dependency_job_id":"51cd9ac0-db64-414f-8e4b-0c35d7698de8","html_url":"https://github.com/contember/prometheus-rds-service-discovery","commit_stats":null,"previous_names":["contember/prometheus-rds-service-discovery"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/contember/prometheus-rds-service-discovery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contember%2Fprometheus-rds-service-discovery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contember%2Fprometheus-rds-service-discovery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contember%2Fprometheus-rds-service-discovery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contember%2Fprometheus-rds-service-discovery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/contember","download_url":"https://codeload.github.com/contember/prometheus-rds-service-discovery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contember%2Fprometheus-rds-service-discovery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34925718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aws-rds","prometheus","service-discovery"],"created_at":"2024-12-09T19:10:55.964Z","updated_at":"2026-06-29T11:32:05.495Z","avatar_url":"https://github.com/contember.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔎 Prometheus Service Discovery for AWS RDS\n\nDiscover and monitor your AWS RDS clusters effortlessly with this Golang Prometheus HTTP ServiceDiscovery tool. 🚀  \nThis service solves issues in case you have RDS autoscaling, and you need to measure metrics per instance (user cpu time, number of connections etc).\n\n![GitHub](https://img.shields.io/github/license/contember/prometheus-rds-service-discovery)\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/contember/prometheus-rds-service-discovery)\n\nPre-built docker image is available on [Docker Hub](https://hub.docker.com/r/contember/prometheus-rds-service-discovery)\ncurrently supporting ARM architecture.  \nIf you need a different architecture, please open an issue.\n\n## Table of Contents\n\n1. [Setup](#setup)\n2. [HTTP Endpoints](#http-endpoints)\n3. [IAM Permissions](#iam-permissions)\n4. [Example Usage](#example-usage)\n\n---\n\n## Setup\n\nBefore you start monitoring your AWS RDS clusters, follow these steps to set up the service discovery:\n\n1. Define the port on which you want to run your app by setting the `$PORT` environment variable. The default fallback port is `8080`.\n2. Ensure AWS credentials are properly configured if needed. (This service is ECS and EKS ready, so container credentials can also be used.)\n\nTo configure clusters for discovery, follow this naming convention:\n- `SCRAPER_0_CLUSTER_ARN=arn:aws:rds:\u003caws-region\u003e:\u003caws-account-id\u003e:cluster:\u003ccluster-identify\u003e`\n- `SCRAPER_1_CLUSTER_ARN=arn:aws:rds:\u003caws-region\u003e:\u003caws-account-id\u003e:cluster:\u003ccluster-identify\u003e`\n\nYou can configure N scraper clusters by incrementing the number in the middle of the environment variable name.\nThis service supports multi-region and multi-account clusters discovery.\n\n---\n\n## HTTP Endpoints\n\nThis service provides the following HTTP endpoints:\n\n- `/.health`: Use this endpoint for health checks.\n- `/discovery`: This endpoint provides Prometheus HTTP-SD compatible output in JSON format.\n\n---\n\n## IAM Permissions\n\nEnsure your service has the necessary IAM permissions to function correctly.  \nYou should grant the `DescribeDBInstances` permission in the specific AWS region where your RDS clusters are located.\n\n```terraform\n\ndata \"aws_iam_policy_document\" \"rds_service_discovery\" {\n  statement {\n    actions = [\n      \"rds:DescribeDBInstances\",\n    ]\n\n    resources = [\n      \"*\"\n    ]\n  }\n}\n```\n\n---\n\n## Example Usage \n\n### Usage with Prometheus Postgres Exporter\n\n```yaml\n- job_name: 'rds'\n  metrics_path: /probe\n  params:\n    auth_module: [internal]\n  http_sd_configs:\n  - url: http://rds-service-discovery:3000/discovery\n  relabel_configs:\n    - source_labels: [__address__]\n      target_label: __param_target\n    - source_labels: [__param_target]\n      target_label: instance\n    - target_label: __address__\n      replacement: 'pg_exporter.svc.cluster.local'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontember%2Fprometheus-rds-service-discovery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontember%2Fprometheus-rds-service-discovery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontember%2Fprometheus-rds-service-discovery/lists"}