Skip to content

http_headers in PodMonitor (PodMetricsEndpoint) and ServiceMonitor (Endpoint) #7189

Description

@wrenix

Component(s)

ServiceMonitor, PodMonitor

What is missing? Please describe.

Set additional Headers (like HOST).

Add a option to set it direct (or per Secret or ConfigMap)

the docu of prometheus:

# Custom HTTP headers to be sent along with each request.
# Headers that are set by Prometheus itself can't be overwritten.
http_headers:
  # Header name.
  [ [<string>](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#string):
    # Header values.
    [ values: [[<string>](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#string), ...] ]
    # Headers values. Hidden in configuration page.
    [ secrets: [[<secret>](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#secret), ...] ]
    # Files to read header values from.
    [ files: [[<string>](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#string), ...] ] ]

Describe alternatives you've considered.

No response

Environment Information.

Environment

Kubernetes Version:
Prometheus-Operator Version:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions