We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In https://prometheus.io/docs/prometheus/latest/configuration/configuration/#http_sd_config
Docs says:
# Optional `Authorization` header configuration. authorization: # Sets the authentication type. [ type: [<string>] | default: Bearer ]
But it did not work, this config below does not send Bearer
Bearer
scrape_configs: - job_name: xyz http_sd_configs: - url: "http://127.0.1:8000" authorization: credentials: <token>
While enabled debug on my endpoint showed, it only sends
Authorization: <token>
not the expected
Authorization: Bearer <token>
After setting the type explicitly, the config worked as expected:
scrape_configs: - job_name: xyz http_sd_configs: - url: "http://127.0.1:8000" authorization: credentials: <token> type: Bearer
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In https://prometheus.io/docs/prometheus/latest/configuration/configuration/#http_sd_config
Docs says:
But it did not work, this config below does not send
Bearer
While enabled debug on my endpoint showed, it only sends
not the expected
After setting the type explicitly, the config worked as expected:
The text was updated successfully, but these errors were encountered: