How to deal with "prometheus" and "prometheus_replica" labels?

Neeraj Krishna

In a hierarchical federated setup of prometheus with a Pull model for the metrics, I see "prometheus" and "prometheus_replica" labels in the metrics that's captured. The system is monitoring a StatefulSet deployment of Kubernetes.

When querying or alerting I see duplicate data included due to these labels, i.e I see a metric with these labels and also without these. Effectively causing wrong counts and alerts.

I see "prometheus" and "prometheus_replica" labels used in the queries on the prometheus that pulls metrics from federated endpoint.

I use ServiceMonitor with Prometheus operator on every kube cluster. All the metrics is federated to a single different Prometheus where this problem is seen.

Is there any documentation on how these labels get generated? Are those metrics to be treated duplicate or ignored?

Neeraj Krishna

I finally found these labels coming from the prometheus operator. It was added for an requirement that's unwritten in any documents. I see it doesn't work in 0.17 version. Its works in 0.23 version of operator.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to deal with labels in input pipeline?

How to deal with ordinal labels in keras?

How one pass C compiler deal with labels?

How can I group labels in a Prometheus query?

How to remove labels in Prometheus Alert template?

How to fix the error undefined variable "$labels"in Prometheus?

How to combine separate timeseries labels in Prometheus query?

How to add labels to Prometheus Summary metric in Java

How to exclude multiple labels from Prometheus Query?

How to deal with Auto Width property for labels in Reports Devexpress?

How to deal with ggplot2 and overlapping labels on a discrete axis

Deleting labels in Prometheus

Micrometer's equivalent of Prometheus' labels

Prometheus regex match on different labels

automatic labels to prometheus alertmanager rules

Adding labels in prometheus_pushgateway

How to get a pod's labels in Prometheus when pulling the metrics from Kube State Metrics

How to define two constant labels and their values in Avalanche metrics generator for Prometheus performance testing?

Alert if data in certain labels is missing in Prometheus

Prometheus: coalesce values for missing labels in binary operations

Prometheus: Viewing __meta_* and __address__ labels

Scrape Kubernetes metadata labels using Prometheus

How do I deal with "Error in FUN(X[[i]],..." when trying to add text labels to points with geom_text?

How to deal with factors in Rcpp

How to deal with frequent classes?

How to deal with the URISyntaxException

How to deal with shifted data

How to deal with underflow in R?

groovysh: how to deal with a typo