Skip to content
Snippets Groups Projects
Unverified Commit 75bc89f6 authored by Jan Fajerski's avatar Jan Fajerski Committed by GitHub
Browse files

prometheus-adapter: add prefix option to config for container metrics (#1844)


This commit adds the options `containerMetricsPrefix`
to the prometheus-adapter config-map generator. By default this option
is the empty string and doesn't change the current behavior. If set
however to e.g. `pa_`, the prometheus-adapter configuration will add
this prefix to all container_ queries in the resource rules.
This enables users of kube-prometheus to define a specialised service
monitor, that only expose the prometheus-adapter related container metrics with a
different configuration, like `honorTimestamps: true` or a tighter
scrape interval.

Signed-off-by: default avatarJan Fajerski <jfajersk@redhat.com>
parent e08a1ec7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment