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/54bd8608-7ef6-4af9-8261-82f17afa6a90%40www.fastmail.com.