Skip to content

Prometheus exporter for AWS resource metadata and metrics which are not available in Cloudwatch

License

Notifications You must be signed in to change notification settings

mirainc/aws-resource-exporter

 
 

Repository files navigation

aws-resource-exporter

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.

Included metadata & metrics

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

Running this software

From binaries

Download the most suitable binary from the releases tab

Then:

./aws-resource-exporter <flags>

Using the container image

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

Building the software

Local Build

make build

Building docker image

make image image-push

Configuration

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.

License

Apache License 2.0, see LICENSE.

About

Prometheus exporter for AWS resource metadata and metrics which are not available in Cloudwatch

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 89.4%
  • Makefile 7.6%
  • Shell 2.1%
  • Dockerfile 0.9%