Thanks for the suggestion. This will actually help in maintaining clarity. 

But just out of curiosity can't the remove KV method of alert manager be 
used that returns a copy of key/value map without the given keys(selective 
labels to drop) as it takes list of keys to be removed and then we iterate 
over it to display the useful labels?


On Friday, June 26, 2020 at 11:07:05 PM UTC+5:30 Harald Koch wrote:

> The Go template 'eq' function has a special feature that lets you list 
> multiple arguments, so you can change your if statement to:
>
>     {{-if (eq .Name "name1" "name2" "name3" }}{{ else -}}
>     • *{{- .Name }}:* `{{- .Value }}`
>     {{ end -}}
>
> As you add more exclusions this gets more concise and easier to read.
>
> -- 
> Harald
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/3085ee53-bb74-4d48-9a84-5bba6cd124dan%40googlegroups.com.

Reply via email to