How to add header to ServiceMonitor endpoint? #5093
danhngo-lx
started this conversation in
General
Replies: 1 comment 1 reply
-
you want to look at https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#monitoring.coreos.com/v1.SafeAuthorization Assuming that you've created a secret
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What did you do?
I need to add
Authorization
header to an endpoint of ServiceMonitor. However according to the API , onlyBearer
andBasic
is supported, while I need something other than that. Specifically I need to add the following header value:Did you expect to see some different?
At the moment it looks like there's no way to configure the
Authorization
header value, or adding a custom header to an Endpoint. The doc even saysAuthorization contains optional Authorization header configuration
however I could not find any information on how to add this optional header (or maybe it's not supposed to be configured directly).Environment
Prometheus Operator version:
v0.58.0
Kubernetes version information:
Kubernetes cluster kind:
Azure AKS
Manifests:
Anything else we need to know?:
Beta Was this translation helpful? Give feedback.
All reactions