sensu / sandbox

The place to get started for new Sensu users
MIT License
21 stars 13 forks source link

Grafana throws errors every 10s to systemd logs #47

Closed rgeniesse closed 5 years ago

rgeniesse commented 5 years ago

While troubleshooting some community issues, I noticed that Grafana would throw an error ever 10 seconds to systemd logs:

Mar 13 23:33:06 sensu-go-sandbox grafana-server[27183]: t=2019-03-13T23:33:06+0000 lvl=eror msg="Cannot read directory" logger=provisioning.dashboard type=file name=default error="stat /var/lib/grafana/dashboards: no such file or directory"
Mar 13 23:33:06 sensu-go-sandbox grafana-server[27183]: t=2019-03-13T23:33:06+0000 lvl=eror msg="Failed to read content of symlinked path: %s" logger=provisioning.dashboard type=file name=default =nil LOG15_ERROR="Normalized odd number of arguments by adding nil"
Mar 13 23:33:06 sensu-go-sandbox grafana-server[27183]: t=2019-03-13T23:33:06+0000 lvl=info msg="falling back to original path due to EvalSymlink/Abs failure" logger=provisioning.dashboard type=file name=default
Mar 13 23:33:06 sensu-go-sandbox grafana-server[27183]: t=2019-03-13T23:33:06+0000 lvl=eror msg="failed to search for dashboards" logger=provisioning.dashboard type=file name=default error="stat /var/lib/grafana/dashboards: no such file or directory"

Confirmed this is happening in Grafana 5.4.3 as well as the new 6. It seems related to the call out of the /var/lib/grafana/dashboards directory in /etc/grafana/provisioning/dashboards/sample.yaml. That said, the one that comes with Grafana at /usr/share/grafana/conf/provisioning/dashboards/sample.yaml has the same line, just commented out.

If I use the one at /usr/share/grafana/conf/provisioning/dashboards/sample.yaml in place of the one provided in this repo at /etc/grafana/provisioning/dashboards/sample.yaml, the error goes away after a Grafana restart.

I don't know the implications of doing such a thing though, but Grafana appears to work still.