Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AWS_REGION as parameter #43

Open
thazlett opened this issue Oct 5, 2022 · 0 comments
Open

Add AWS_REGION as parameter #43

thazlett opened this issue Oct 5, 2022 · 0 comments

Comments

@thazlett
Copy link

thazlett commented Oct 5, 2022

Looking at the code it doesn't seem like this is a thing already.

Would it be possible to add the AWS_REGION is a URL parameter?

This would allow a single Prometheus job to scrape information about buckets in multiple regions from a single exporter. It seems that at the moment, you need to have an s3_exporter instance per aws region you have buckets of interest in.

Something like:
http://127.0.0.1:9340/probe?bucket=bucket-in-eu-west-1&prefix=bla&region=eu-west-1
http://127.0.0.1:9340/probe?bucket=bucket-in-eu-west-2&prefix=bla&region=eu-west-2

A job config target would look like this:

  • bucket=bucket-in-eu-west-1;prefix=bla;region=eu-west-1;
  • bucket=bucket-in-eu-west-2;prefix=bla;region=eu-west-1;

Really like this exporter!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant