English 中文(简体)
• 如何在格拉夫纳的所有米特罗维察警报中添加标签
原标题:How to add labels to all Grafana Mimir alerts

我设立了格拉夫纳、米米尔、洛基、锡洛和格拉夫纳应急帐篷,由赫尔曼部署。 我进口了所有组合式警报,现在进口了大约300次警报。

I would like to be able to add labels to all these alerts. i.e env=prod

在Prometheus中,你可以更新换代会议,包括:

  prometheus.yml:
    global:
      external_labels:
        environment: prod

在Mimir也能够这样做?

I cant seem to find any way of adding a prometheus.yaml or the required global configuration to Mimir. Is this even possible? Or is there another way to add external labels to everything in Mimir?

问题回答

This is not currently possible, as far as I know.

你们需要添加 gr香蕉树脂的标签,例如:

prometheus.remote_write "metamonitoring" {
  external_labels = {
    environment = "prod",
  }
  endpoint {
    url = env("MIMIR_URL")
    basic_auth {
      username = nonsensitive(remote.kubernetes.secret.credentials.data["REMOTE_WRITE_USERNAME"])
      password = remote.kubernetes.secret.credentials.data["REMOTE_WRITE_PASSWORD"]
    }
    headers = {
      "X-Scope-OrgID" = "metamonitoring",
    }
  }
}




相关问题
asp.net global resources problem

I have a weird problem with global resources in my asp.net mvc web application. I have some resources in separate project(not a web app project). Those resources have following settings: Build action:...

"Global variable" in Visual C#

I have made the Graph class, and i want to simulate a distribution network. The Graph works 100%. But, i want to use that same struct/class in all my application! For example: I have Form1 that shows ...

VB.NET - Imports namespace from other projects in Solutions

In my Solutions in Visual Studio, I have 3 projects. - Common (Root namespace: PodcastPlayer.Common) -PodcastPlayer (Root namespace: PodcastPlayer) This is the Silverlight project. -PodcastPlayer.Web (...

PHP Variable Scope

Is there a way to declare a variable so it is available in all functions. Basically I want to call: Global $varName; automatically for every function. And no, I can t use a constant. I don t think ...

global variable in ASPX C#

I write a ASPX c# page, and I MUST use a global variable like this; public static Decimal _Total; protected void Page_Load(object sender, EventArgs e) { if (Page.IsPostBack == false) ...

热门标签