Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not infer datasource UID from its name: stackdriver #207

Open
hinricht opened this issue Mar 15, 2023 · 0 comments
Open

Could not infer datasource UID from its name: stackdriver #207

hinricht opened this issue Mar 15, 2023 · 0 comments

Comments

@hinricht
Copy link

Hi ! Thanks for this awesome project, it's excactly what was missing regading dashboards-as-code !

I'm using the Stackdriver datasource, and am using the stackdriver-query.yaml exampledashboard.
When I comment out the alert: key, it works as it should, but with the alert it fails with:

could not create dashboard: could not add new alerts for dashboard: could not infer datasource UID from its name: stackdriver

The operator error msg;

{"level":"error","ts":"2023-03-15T17:22:11Z","msg":"Reconciler error","controller":"grafanadashboard","controllerGroup":"k8s.kevingome
z.fr","controllerKind":"GrafanaDashboard","GrafanaDashboard":{"name":"postgres","namespace":"monitoring"},"namespace":"monitoring","na
me":"postgres","reconcileID":"0020680c-0ec3-42d7-993a-71e4cd0356ec","error":"could not create dashboard: could not add new alerts for 
dashboard: could not infer datasource UID from its name: stackdriver","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/contro
ller.(*Controller).reconcileHandler\n\t/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:329\nsig
s.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/workspace/vendor/sigs.k8s.io/controller-runt
ime/pkg/internal/controller/controller.go:274\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/
workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:235"}      

What's wrong ?

Btw, the Stackdriver Datasource is defined not with DARK, but with kube-prometheus-stack. But as the datasource works fine for the Dashboard panel, I guess this is not the issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant