Sign inSign up

jimdo/aws-health-exporter

By jimdo

Updated about 9 years ago

A simple server that scrapes the AWS Status and exports it via HTTP for Prometheus consumption.

Image
1

100K+

jimdo/aws-health-exporter repository overview

Note: This image is not actively maintained anymore!

AWS Health Exporter Build Status

This is a simple server that scrapes the AWS Status (via the AWS Health API) and exports it via HTTP for Prometheus consumption. That allows you to alert on certain AWS status updates or to just make them visible on your dashboards.

Note that in order to scrape the AWS Health API your AWS account has to have a Business or Enterprise support plan. See the official documentation for details.

Build
make
Run
./aws-health-exporter --aws.region=eu-west-1

Exposed metrics

The aws-health-exporter exports just one metric (event count) and you want to filter by the included labels.

Example

# This gives us a list of all `open` events in region `us-east-1` of type `issue`
aws_health_events{status_code="open", region="us-east-1", category="issue"}
NameDescriptionLabels
aws_health_eventsAWS Health eventscategory, region, service, status_code
Labels Explained
LabelDescription
categoryThe category of the event. Possible events are issue, accountNotification and scheduledChange.
regionThe AWS region name of the event. E.g. us-east-1.
serviceThe AWS service that is affected by the event. For example, EC2, RDS.
status_codeThe most recent status of the event. Possible values are open, closed, and upcoming.

The labels match the corresponding AWS Event content - for a more detailed and up-to-date explanation see the offical documention here

Flags

FlagDescription
--helpShow help.
--versionPrint version information
--web.listen-addressThe address to listen on for HTTP requests. Default: ":9383"
--aws.categoryA list of event type category codes (issue, scheduledChange, or accountNotification) that are used to filter events.
--aws.regionA list of AWS regions that are used to filter events
--aws.serviceA list of AWS services that are used to filter events

Docker

You can deploy this exporter using the jimdo/aws-health-exporter Docker Image.

Example

docker pull jimdo/aws-health-exporter
docker run -p 9383:9383 jimdo/aws-health-exporter
Credentials

The aws-health-exporter requires AWS credentials to access the AWS Health 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.

Tag summary

Content type

Image

Digest

Size

86.3 MB

Last updated

about 9 years ago

docker pull jimdo/aws-health-exporter