canonical / prometheus-k8s-operator

This charmed operator automates the operational procedures of running Prometheus, an open-source metrics backend.
https://charmhub.io/prometheus-k8s
Apache License 2.0
21 stars 34 forks source link

Add `params` to scrape job configuration #541

Closed gboutry closed 9 months ago

gboutry commented 11 months ago

Enhancement Proposal

It is possible, in prometheus configuration to add the parameter params to a job, to specify HTTP query parameters to add to the metrics_path (? gets HTML encoded if provided in the metrics path).

https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config

My use case: I'm using openstack-exporter that exposes the following endpoints:

Params schema:

params: dict[str, list[str]]