grafana/mimir

[ruler] Support external labels

Open

#3,490 建立於 2022年11月22日

在 GitHub 查看
 (6 留言) (11 反應) (0 負責人)Go (808 fork)auto 404
component/rulerenhancementhelp wanted

倉庫指標

Star
 (5,181 star)
PR 合併指標
 (PR 指標待抓取)

描述

Is your feature request related to a problem? Please describe.

It's not possible to set extra labels on series at the ruler, like it is with Prometheus with external_labels. So you can't set e.g. 'cluster' or 'environment' etc.

Describe the solution you'd like

Something like what Prometheus provides:

global:
  # The labels to add to any time series or alerts when communicating with
  # external systems (federation, remote storage, Alertmanager).
  external_labels:
    [ [<labelname>](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#labelname): [<labelvalue>](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#labelvalue) ... ]

貢獻者指南