Skip to content

radiofrance/s3-exporter

Repository files navigation

S3 Exporter

Situation: Collecting metrics from S3 Buckets in Prometheus.

Solution: An exporter that can report for any needed metrics from S3 Buckets such as the last modified date for objects in a bucket that match a given prefix for instance.

Export Variable: To make it works successfully, you have to export these environment variable before :

  • AWS_REGION=eu-west-1
  • AWS_ACCESS_KEY_ID= ...
  • AWS_SECRET_ACCESS_KEY= ...

see the AWS SDK FOR GO DOC FILE : https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html

Configuration

By default, the exporter reads its configuration from /etc/config/s3-exporter/s3config.json (this path can be changed via S3_EXPORTER_CONFIG_PATH environment variable).

There is an example of this configuration file in fixtures/sample.json.

Using an other provider than Amazon S3

If one of your tenants is not hosted on Amazon S3 (example if you use Garage, MinIO, etc), you can specify a endpoint url in the configuration for your tenant.

You can also tell the exporter to use path-style if you want.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors