Haxxnet/Compose-Examples

Grafana dashboard not populating with data

Closed this issue · 1 comments

Describe the bug
I followed your blog post from here and everything from a docker-compose standpoint is working. Grafana is accessible, all containers are running. I can successfully test the loki and influxdb data source connections and they work. However, I've used your JSON from the blog post and the JSON template from within the repo, and neither pulls data. I'm new to the dashboarding and I'm trying to understand where Grafana, influx, or promtail would know about the server/host it's supposed to read from. I would expect there to be a need to provide an IP address or host name.

https://github.com/Haxxnet/Compose-Examples/tree/main/examples/grafana-monitoring

Affected FOSS
relevant json template

To Reproduce
Steps to reproduce the behavior:
performed all steps within the blog post mentioned above

Expected behavior
Would have expected to see data in Grafana dashboard

Screenshots

Desktop (please complete the following information):

  • OS: Debian

Additional context

Check Grafana's data sources. There, you'll find the sources and can validate whether data is existent.

If there is no data, check the containers (influxdb, promtail) whether data is properly collected.

Finally, check the Grafana tiles. Each tile can be edited and shows the code (loki queries or others). Ensure that the proper sources are used, which are configure at Grafana's settings for data sources.

Edit: You should import the dashboard file from the blog post if you've followed it. Download it from here. The json provided in this GH repo is from a different Blog post, which uses different data sources not implemented in your mentioned blog post.