Skip to content

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

Description

@asachs01

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions