stefanprodan / dockprom

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

fix(grafana): add empty provisioning notifiers and plugins folder #209

Closed mmuenker closed 3 years ago

mmuenker commented 3 years ago

If the folder plugins or notifiers are not defined in the provisioning folder an error will be thrown while reading provisioning files.

Failed to read plugin provisioning files from directory" logger=provisioning.plugins path=/etc/grafana/provisioning/plugins error="open /etc/grafana/provisioning/plugins: no such file or directory

Can't read alert notification provisioning files from directory" logger=provisioning.notifiers path=/etc/grafana/provisioning/notifiers error="open /etc/grafana/provisioning/notifiers: no such file or directory

nightah commented 3 years ago

These errors as far as I can tell don't actually cause any issues. Having said that we can fix this by instead by changing the following line: https://github.com/stefanprodan/dockprom/blob/4c2b86c47c31b011ca490560615fc7eff875bf96/docker-compose.yml#L92

To instead read:

      - ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
      - ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources

Happy for you to adjust this PR to my suggestion to get this merged.