stefanprodan / dockprom

Docker hosts and containers monitoring with Prometheus, Grafana, cAdvisor, NodeExporter and AlertManager
MIT License
5.97k stars 1.71k forks source link

Grafana v9.1.1 (9e60a1bff1) show no preconfigured dashboards by default #275

Closed saukrs closed 1 year ago

saukrs commented 1 year ago

I use Docker 20.10.21 + Compose plugin v2.12.2 on updated Linux Mint 21.

If I clone the repo and run this command:

ADMIN_USER=admin ADMIN_PASSWORD=admin ADMIN_PASSWORD_HASH=JDJhJDE0JE91S1FrN0Z0VEsyWmhrQVpON1VzdHVLSDkyWHdsN0xNbEZYdnNIZm1pb2d1blg4Y09mL0ZP docker compose up -d

(notice the docker compose without a dash, as was in the original snippet: docker-compose)

... the initial Grafana view is empty. I get no preconfigured dashboards: Screenshot from 2022-11-08 13-44-45

saukrs commented 1 year ago

This is what my Grafana homepage page looks like (http://localhost:3000/?orgId=1).

OK, some preconfigured dashboards seems to be actually present on my install: http://localhost:3000/alerting/list?search=open&query=

Screenshot from 2022-11-08 15-31-06

... only that I expected to see one of them to be set as Grafana Home dashboard: https://stackoverflow.com/questions/48164754/how-to-set-a-dashboards-on-grafana-home-page/48212294#48212294

nightah commented 1 year ago

As you have discovered the Dashboards are present, as far as setting the default Dashboard, there are multiple ways to address this however I can't see any mechanism to do that on provisioning because of the different layers the default can be set.