I heard about ignore_metrics configuration item which can be used to ignore or include specific Prometheus metrics, but cannot find any official documentation how to use it. Anyone can help me with this?
You can use metric_relabel_configs to filter out already scraped values. So, when you exclude any metric this way it will not be stored in db, using this approach you can reduce disk usage and exclude all not necessary metrics. e.g.:
metric_relabel_configs:
- source_labels: [ __name__ ]
regex: 'istio_.*'
action: drop
in this example all metrics which name starts with istio_ will not be stored.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With