Sign inSign up

oba11/s3-exporter

By oba11

•Updated over 6 years ago

Prometheus s3-exporter

Image
0

3.2K

oba11/s3-exporter repository overview

CircleCI Dependabot Status

⁠S3 exporter

Prometheus exporter for s3 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/s3-exporter

OR

docker run -d -p 9109:9109 -v config.yml:/config/config.yml -e CONFIG_PATH=/config/config.yml oba11/s3-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_objects_countThe number of objects in the s3 bucketgauge
aws_s3_objects_size_bytesThe size of objects in the s3 bucketgauge
request_processing_durationHow long it took to retrieve all the data for the bucketgauge

Tag summary

Content type

Image

Digest

Size

51.3 MB

Last updated

over 6 years ago

docker pull oba11/s3-exporter