apache-pulsar-grafana-dashboard icon indicating copy to clipboard operation
apache-pulsar-grafana-dashboard copied to clipboard

Templating init failed Datasource named ${DS_default} was not found

Open liangyuanpeng opened this issue 5 years ago • 10 comments

I have run docker image of streamnative/apache-pulsar-grafana-dashboard and I just got some error Datasource named ${DS_default} was not found when I access the topic dashboard, have something missed? Thanks any help!

image

image

liangyuanpeng avatar Jan 11 '20 04:01 liangyuanpeng

@liangyuanpeng have you figured the problem?

sijie avatar Jan 11 '20 08:01 sijie

Can we re-open this? I just had this happen on a clean install.

abatilo avatar Jun 06 '20 00:06 abatilo

@abatilo Can you share your command to run the dashboard?

sijie avatar Jun 10 '20 05:06 sijie

Hi @sijie In the context of a Kubernetes cluster deployed with this helm chart, I accessed the dashboard with kubectl -n pulsar port-forward service/pulsar-grafana 3000 and then navigating to http://localhost:3000

abatilo avatar Jun 10 '20 15:06 abatilo

Is something happening about this ?

milos-matijasevic avatar Sep 11 '20 15:09 milos-matijasevic

@abatilo @milos-matijasevic Did you see any logs from the Grafana pods?

sijie avatar Sep 11 '20 15:09 sijie

I don't remember at this point, to be honest.

abatilo avatar Sep 11 '20 16:09 abatilo

@abatilo how did you resolve the problem?

sijie avatar Sep 11 '20 16:09 sijie

Im working on it right now, and i don't see any error neither relevant logs from grafana pod

By the way it works if i manually change datasource for each panel, but i can't save changes since it's provisioned dashboard which is not editable

Also what i can notice is that DS_default variable is missing, when i add it, it works, but again i can't save it image

edit This dashboard is loaded automatically from API, and it has "__input" field in it, on this thread (https://community.grafana.com/t/set---inputs-values-when-pushing-a-dashboard-json-config-to-grafana-via-the-api/2836) it is said that "__input" field is for importing dashboard from UI, and it should not be used when importing dashboards from API

I can confirm that when i import other dashboard (https://github.com/kubernetes/ingress-nginx/blob/master/deploy/grafana/dashboards/nginx.json) with "__input" field manually from UI it works

milos-matijasevic avatar Sep 11 '20 16:09 milos-matijasevic

@abatilo how did you resolve the problem?

By not using Pulsar. I was evaluating it for use. But the whole ecosystem seems too young to rely on for production use.

abatilo avatar Sep 11 '20 18:09 abatilo