-
Notifications
You must be signed in to change notification settings - Fork 44
cannot get applicationmonitorings.applicationmonitoring.integreatly.org in the namespace #123
Comments
This seems odd. Why would the grafana-operator serviceaccount need to get ApplicationMonitoring CRs. |
@pb82 Any thoughts on this? |
Strange, could it have to do with the CRD metrics? |
@pb82 My guess is it's failing on getting the ownerRef of the pod here |
Some more supporting evidence. Lines 571 to 576 in b92d362
|
@pb82 If this is the problem, 1 solution is to grant the additional permission to the grafana-operator serviceaccount. |
After creating the example-prometheus-nodejs, the grafana dashboard is not showing.
In the grafana-operator I get the following error:
{"level":"error","ts":1582801368.3774614,"logger":"cmd","msg":"error starting metrics service","error":"failed to initialize service object for metrics: applicationmonitorings.applicationmonitoring.integreatly.org \"example-applicationmonitoring\" is forbidden: User \"system:serviceaccount:application-monitoring:grafana-operator\" cannot get applicationmonitorings.applicationmonitoring.integreatly.org in the namespace \"application-monitoring\": no RBAC policy matched","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/travis/gopath/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128\nmain.main\n\tgrafana-operator/cmd/manager/main.go:223\nruntime.main\n\t/home/travis/.gimme/versions/go1.13.5.linux.amd64/src/runtime/proc.go:203"}
Best regards
The text was updated successfully, but these errors were encountered: