aws-rds-maxcon-prometheus-exporter

command module
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 11 Imported by: 0

README

aws-rds-maxcon-prometheus-exporter

Prometheus Exporter for AWS RDS Max Connections

image.png

How to run

Local
$ go run main.go
Binary

Get the binary file from Releases and run it.

Docker
$ docker run chaspy/aws-rds-maxcon-prometheus-exporter:v0.1.0

Metrics

$ curl -s localhost:8080/metrics | grep aws_custom_rds_max_connections
aws_custom_rds_max_connections{dbinstanceclass="db.r5.4xlarge",dbinstanceidentifier="postgres-api-production-a01"} 5000
aws_custom_rds_max_connections{dbinstanceclass="db.r5.4xlarge",dbinstanceidentifier="postgres-api-production-a02"} 5000
aws_custom_rds_max_connections{dbinstanceclass="db.r5.large",dbinstanceidentifier="test-postgres-production-a01"} 1800
aws_custom_rds_max_connections{dbinstanceclass="db.r5.large",dbinstanceidentifier="test-postgres-production-a02"} 1800

IAM Role

The following policy must be attached to the AWS role to be executed.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "rds:DescribeDBInstances",
                "rds:DescribeDBParameters",
            ],
            "Resource": "*"
        }
    ]
}

Datadog Autodiscovery

If you use Datadog, you can use Kubernetes Integration Autodiscovery feature.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL