rfmoz / grafana-dashboards

Grafana dashboards
Apache License 2.0
1.1k stars 438 forks source link

Dashboard View Doesn't Update When Datasource Changed #139

Closed desebjohnston closed 7 months ago

desebjohnston commented 1 year ago

This is probably a fundamental misunderstanding of how this dashboard works. I have multiple prometheus datasources on separate hosts on port 9090 each with their own node_exporter that is targeted by each hosts own prometheus instance scraping via localhost:9100. When I change the datasource in the dashboard none of the metrics change, but the host still targets localhost:9100. I'm guessing the metrics are only being collected on the localhost:9100 of the server running the grafana instance. If I update the prometheus targets for node_exporter to include multiple targets wouldn't every host scrape every other host in the network?

calestyo commented 8 months ago

I have the same problem. The reason seems to be that after importing, Grafana somehow rewrites the dashboard’s DS_PROMETHEUS variable to some fixed data source,... and it also shows the variable then to be unused (under Settings/Variables).

calestyo commented 8 months ago

Oh and this is a duplicate of #51.