Tag by Kubernetes Labels

Hello!

We have the label “squad: squad name”, we need to create alert profiles for each squad.

We tried using the [kubernetes]squad: tag, which although it worked to filter services, did not work in the alert profile.

What would be the best case? Is it possible to create automatic tags based on the label?

Hi,

You can link an alerging profile to a management zone, maybe it would be easier.

It means, you can create a management zone base your label tags or adding other rules. And then, linking that management zone to an alerting profile.

Best regards

So, the best case would be to create an mz for each squad, like this?

Isn’t there a placeholder for the tag value to be the label?
​

Can I suggest using Monaco to create the management zones?
Once you have the proper template, you can easily create a new MZ using the template, with the squad name as a variable.

Hi,

You can select your Kubernetes label:

As press “preview” button to see entities involved. It is to test if you rule is matching expected entities.

Best regards