Search code examples
grafanagrafana-variable

How to filter out some values of grafana dashboard variable?


I have such a variable but it returns some values which I don't want to see(template0 and template1)

enter image description here

How can I filter them out ?

I tried to write label_values(datname!~"template.*|postgres")

But grafana says that this definition has broken syntax


Solution

  • This works(filter both: postgres and tempate database): enter image description here