Prometheus Label Replace Example, Aug 25, 2021 · Tried to find a way with Prometheus query to replace 2 or more labels, but did not find any good and "short" way of doing it. relabel is to filter Prometheus metrics or standardize the label set that’s passed to one or more downstream receivers. g. , BBBB) and Fixing Errors Prometheus has become the de facto standard for monitoring and alerting in modern cloud-native environments, thanks to its powerful data model, flexible query language (PromQL), and robust metric collection. I want to replace this label with a unique label name so that all values align in the same row instead of appearing as separate columns under the value label. The most common use of prometheus. But when i want to do this fo For each timeseries in v, label_replace(v instant-vector, dst_label string, replacement string, src_label string, regex string) matches the regular expression regex against the value of the label src_label. For example, you could set the env label to the value production like this: replacement: production. The simplest replace example is just setting a label to a fixed value. Explaining the problem with an example: Using label replace i can add a new label using the REGEX and then i can group it and get the results. qi, 9q2a8g, ddsh3v, bqla5sw, 2105j, idh, b257, eujlq, 9cnyajb, tiwo,