Deepesh Kataria
Deepesh Kataria

Reputation: 1

How to limit the count of specific metric of type histogram?

Prometheus is getting OOM due to lots of metric of type histogram. Is there any way to control only specific le of a metric.

What is required:
Let's suppose i have 4 metrics of type histogram: first_*, second_* , third_*, fourth_*. I want to limit the le of fourth_ only with le values of 10,20,50,100.

I tried to configure serviceMonitor with following, but it's affecting every metric of type histogram. I want to achieve only for specific metric of type histogram.

>   metricRelabelings:
    - action: keep
      regex: ^(\+Inf$|10$|25$|50$|100$|250$|500$|1000$|5000$|10000$).*|
      sourceLabels:
        - le

Upvotes: 0

Views: 21

Answers (0)

Related Questions