json_exporter icon indicating copy to clipboard operation
json_exporter copied to clipboard

Is templating supported in basic_auth?

Open kalmarz opened this issue 10 months ago • 0 comments

I'd like to pass the credentials as environment variables, similarly to blackbox-exporter:

    http_client_config:
      basic_auth:
        username: '{{ env "OS_USERNAME" }}'
        password: '{{ env "OS_PASSWORD" }}'

But this doesn't seem to be working as I always get a 403. Is it supported and I miss something?

kalmarz avatar Mar 13 '25 09:03 kalmarz