Hi All,
Our Java applications are exposing exposing application metrics using micrometer framework and we have the http_server_requests_bucket getting created based on the response time of the requests. Since the number of microservices are in 1000's we are already having more than 1 million time-series. We analysed and found the above time series metrics is having more than 500k+ time-series. So we want to keep only the time series which has below bucket values and drop the rest. If we try doing the below all the other time series like (process uptime, JVM related statistics are also getting dropped).
We can use drop and provide regex of other values(
https://www.robustperception.io/why-are-prometheus-histograms-cumulative) but they the list to blacklist is very long so we want to whitelist the required values. Any option to include additional check to apply the below metric label only for time series with name http_server_requests_bucket or any other options available. Looking forward for some help
- source_labels: [le]
action: keep
regex: '(\+Inf|0.1|0.25|0.5|0.75|1.0|2.5|5.0|7.5|10|1)'
Regards
Sakthi