aws_rds_exporter

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: MIT Imports: 11 Imported by: 0

README

This is a simple server that scrapes AWS RDS Instances

Build

make

Run

./aws_rds_exporter --aws_rds.region=us-east-1

Exported Metrics

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

Flags

./aws_rds_exporter --help
  • aws_rds.region: AWS Region to run API calls against.

Unit Tests

Use the below to run unit tests locally.

go list ./... | grep -v /vendor/ | go test -v

Docker

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

Credentials

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
mock
aws
aws/sdk
Package sdk is a generated GoMock package.
Package sdk is a generated GoMock package.

Jump to

Keyboard shortcuts

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