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

-exporter-user and -exporter-url flags don't appear to work #23

Open
asachs01 opened this issue Oct 11, 2020 · 0 comments
Open

-exporter-user and -exporter-url flags don't appear to work #23

asachs01 opened this issue Oct 11, 2020 · 0 comments

Comments

@asachs01
Copy link
Contributor

Howdy folks! I've been experimenting using the collector against and endpoint that has basic auth, and the flags -exporter-user and -exporter-url don't appear to work. In this particular case, I'm attempting to scrape a Graylog prom endpoint with the check command that looks like this:

# ./sensu-prometheus-collector -exporter-url http://logs.sachshaus.net/api/plugins/org.graylog.plugins.metrics.prometheus/metrics -exporter-user $EXPORTER_USER -exporter-password $EXPORTER_PASSWORD

2020/10/11 01:46:15 exporter returned non OK HTTP response status: 401 Unauthorized

I've tried with the env vars set from the command line, inside of /etc/default/sensu-agent and in just plaintext and I cannot get this to work as expected. Am I missing something?

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