integr8ly / application-monitoring-operator

Operator for installing the Application Monitoring Stack on OpenShift (Prometheus, AlertManager, Grafana)
Apache License 2.0
30 stars 44 forks source link

Failed to load Grafana dashboards #51

Closed abkieling closed 5 years ago

abkieling commented 5 years ago

I created a GrafanaDashboard resource but it didn't get loaded into Grafana. Looking at the grafana operator pod logs, I can see the following error:

E0617 11:54:21.550538 1 reflector.go:205] github.com/integr8ly/grafana-operator/vendor/sigs.k8s.io/controller-runtime/pkg/cache/internal/informers_map.go:126: Failed to list *v1alpha1.GrafanaDashboard: grafanadashboards.integreatly.org is forbidden: User "system:serviceaccount:application-monitoring:grafana-operator" cannot list grafanadashboards.integreatly.org at the cluster scope: RBAC: clusterrole.rbac.authorization.k8s.io "grafana-operator-cluster-role" not found