Sign inSign up

oba11/glacier-exporter

By oba11

•Updated over 7 years ago

AWS Glacier Exporter for Prometheus

Image
0

1.2K

oba11/glacier-exporter repository overview

⁠Glacier exporter

Prometheus exporter for glacier metrics. This exporter is useful to retrieve the number of archives in the vault and the size of the vault.

⁠Building and running

⁠Docker
docker run -d -p 9109:9109 -v config.yml:/src/config.yml oba11/glacier-exporter

OR

docker run -d -p 9109:9109 -v config.yml:/config/config.yml -e CONFIG_PATH=/config/config.yml oba11/glacier-exporter

⁠Configuration

The configuration is in YAML, an example with common options:

---
region: eu-west-1
buckets:
	- bucket_one
	- bucket_two

IAM Policy

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "s3:ListBucket"
      ],
      "Resource": "*"
    }
  ]
}
NameDescription
regionRequired. The AWS region to connect to.
role_arnOptional. The AWS role to assume. Useful for retrieving cross account metrics.
bucketsRequired. A list of s3 buckets to retrieve and export metrics

⁠Metrics

List of metrics exposed by the exporter

NameDescriptionType
aws_s3_number_of_glacier_objectsThe number of objects in glacier storagegauge
aws_s3_glacier_objects_size_bytesThe size of objects in glacier storagegauge
request_processing_durationHow long it took to retrieve all the data for the bucketgauge

Tag summary

Content type

Image

Digest

Size

44.2 MB

Last updated

over 7 years ago

docker pull oba11/glacier-exporter