How to HTTP POST?
#47224
Replies: 1 comment
|
To avoid putting credentials in URL params, you could use basic_auth in your scrape config. The Prometheus receiver embeds the full Prometheus scrape config, so standard https://prometheus.io/docs/prometheus/latest/configuration/configuration/#http_config fields should apply: This sends credentials as an Authorization: Basic ... header instead of URL params as long as the other side will accept it. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Component(s)
No response
Is your feature request related to a problem? Please describe.
I am trying to integrate with Prometheus Exporter - how can I configure OTEL Collector to perform a HTTP POST instead of GET? I have the credentials configured in the collector and I rather not put them on the URL.
I am currently using:
Describe the solution you'd like
configure otel to include credentials as headers or http post payload body
Describe alternatives you've considered
none
Additional context
Previous username and password from being leaked
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it. Learn more here.All reactions