K-Phoen / backstage-plugin-grafana

Grafana plugin for Backstage
Apache License 2.0
57 stars 33 forks source link

Colon in annotation grafana/dashboard-selector not accepted #75

Open marians opened 1 year ago

marians commented 1 year ago

Found this plugin and gave it a test run. The goal:

On a Group entity page, list the dashboards owned by the group.

First I added simple tag selectors like this:

apiVersion: backstage.io/v1alpha1
kind: Group
metadata:
  name: team-atlas
  annotations:
    grafana/dashboard-selector: "owner:team-atlas"

Result:

Unexpected ":" at character 5

However this worked:

apiVersion: backstage.io/v1alpha1
kind: Group
metadata:
  name: team-atlas
  annotations:
    grafana/dashboard-selector: "tags @> 'owner:team-atlas'"