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 optional HTTP auth, tests. #297

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

btimby
Copy link

@btimby btimby commented Mar 1, 2024

I needed HTTP basic auth for my metrics. This PR adds two optional CLI args: --http-username and --http-password.

@danihodovic
Copy link
Owner

What's the use case here? Are you connecting to the exporter over the public internet? Is it possible to place Nginx in front?

@btimby
Copy link
Author

btimby commented Mar 2, 2024 via email

@danihodovic
Copy link
Owner

danihodovic commented Mar 7, 2024

This is the first request I receive for baking in HTTP basic auth. I'd prefer to keep the code base small so I won't be merging this. Feel free to fork the repo with the added changes and deploy your own patched exporter.

If you're using Grafana for visualizations here are two charts designed for the 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

Successfully merging this pull request may close these issues.

2 participants