Skip to content

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

@hinricht

Description

@hinricht

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions