Closed gboutry closed 9 months ago
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).
params
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:
/metrics
/probe?cloud=<name of cloud>
Params schema:
params: dict[str, list[str]]
Enhancement Proposal
It is possible, in prometheus configuration to add the parameter
params
to a job, to specify HTTP query parameters to add to themetrics_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:
/metrics
<-- exposes the exporter's internal metrics/probe?cloud=<name of cloud>
<-- exposes cloud's metricsParams schema: