prometheus-community/json_exporter

A question about authentication methods

f33r0 opened this issue · 2 comments

f33r0 commented

Any other methods other than basic_auth work?

Now, I catching:
Failed to fetch JSON response. TARGET: https://url, ERROR: 401 Unauthorized

My config:

http_client_config:
  tls_config:
    insecure_skip_verify: false
    follow_redirects: false
  bearer_token: token
f33r0 commented

using version 0.3.0 as well

I can confirm this works in v0.5. Make sure your indentation is correct.

modules:
  module name:
    metrics:
    - metrics config stuff
    http_client_config:
      bearer_token: token