Hi, Prometheus community!!
As the subject states, is there any way to have a metrics whitelist, instead of blacklisting metrics in the relabeling configs? This would mean specifying less metrics for us and using less greedy regular expressions for us, as we scrape very little in order to reduce usage as much as possible.
For example, instead of this:
metric_relabel_configs:
- source_labels:
- __name__
regex: go_.*|admission_.*|apiserver_request_latencies_summary|cluster_resource_verb:apiserver_latency:quantile_seconds|apiserver_request_count|etcd_request_latencies_summary|http_.*
action: drop
Is it possible to do something sort of like this:
metric_relabel_configs:
- source_labels:
- __name__
regex: cpu_metric_1|volume_mount_filesystem_free|other_cool_metric
action: keep
I'm a little bit new to this and can't find my answer elsewhere, so thanks for your time!
- Clarke