Logical Operators in Annotation filters

  • What Grafana version and what operating system are you using?
    v9.1.8 on Windows10

  • What are you trying to achieve?
    Lets say there are annotations like:
    a1 → {…, tags: [“metadata”, “sensor1”, “temp”]}
    a2 → {…, tags:[“metadata”, “sensor2”, “temp”]}
    a3 → {…, tags:[“metadata”, “sensor3”, “temp”]}
    a4 → {…, tags:[“metadata”, “sensor4”, “depth”]}
    a5 → {…, tags:[“outliers”, “sensor1”]}
    a6-> {…, tags:[“outliers”, “sensor2”]}
    I only want to display annotations a1, a2.

  • How are you trying to achieve it?
    Add an annotation filter (for grafana built-in annotations), that filters annotations based on tags (as already implemented), BUT also allow logical operators.
    How would I create a filter to only show annotations with the tags “metadata” AND “temp” AND (“sensor1” OR “sensor2”) (But not “sensor3” and not “outliers”, e.g.)?