This is a simple server that scrapes AWS RDS Instances
make
./aws_rds_exporter --aws_rds.region=us-east-1
Metric | Meaning | Labels |
---|---|---|
aws_rds_storage | Amount of storage in bytes for the RDS instance | region, instance |
aws_rds_iops | Amount of iops for the RDS instance | region, instance |
./aws_rds_exporter --help
aws_rds.region
: AWS Region to run API calls against.
Use the below to run unit tests locally.
go list ./... | grep -v /vendor/ | go test -v
You can deploy this exporter using the alecrajeev/aws_rds_exporter Docker Image.
Example
docker pull alecrajeev/aws_rds_exporter
docker run -p 9785:9785 alecrajeev/aws_rds_exporter
The aws_rds_exporter
requires AWS credentials to access the AWS RDS API. For example, you can pass them via env vars using -e AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} -e AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
options.