Prometheus exporter for AWS resources
This was made as a complement to CloudWatch Exporter to get resource information that are useful to keep around as metrics in Prometheus but are out of scope for CloudWatch Exporter.
Service | Metric | Description |
---|---|---|
RDS | allocatedstorage | The amount of allocated storage in GB |
RDS | dbinstanceclass | The DB instance class (type) |
RDS | dbinstancestatus | The instance status |
RDS | engineversion | The DB engine type and version |
RDS | pendingmaintenanceactions | The pending maintenance actions for a RDS instance |
Download the most suitable binary from the releases tab
Then:
./aws-resource-exporter <flags>
docker run --rm -d -p 9115:9115 \
--name aws-resource-exporter \
--env AWS_ACCESS_KEY_ID=AAA \
--env AWS_SECRET_ACCESS_KEY=AAA \
--env AWS_REGION=AAA \
quay.io/app-sre/aws-resource-exporter:latest
make build
make image image-push
AWS credentials can be passed as environment variables AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
. AWS region must be passed via AWS_REGION
.
To view all available command-line flags, run ./aws-resource-exporter -h
.
Apache License 2.0, see LICENSE.