Tool to help you manage your Grafana dashboards using Git.

config.example.yaml 1.3KB

12345678910111213141516171819202122232425262728293031323334
  1. # Settings to connect to the Grafana instance.
  2. grafana:
  3. # Base URL for the Grafana instance.
  4. base_url: https://grafana.company.tld
  5. # Grafana API key. This is generated by Grafana, as explained at
  6. # http://docs.grafana.org/http_api/auth/#create-api-token
  7. api_key: apiauthkey
  8. # Settings to interact with the Git repository. Currently only SSH repos are
  9. # supported.
  10. git:
  11. # SSH URL to the repository. The user part (usually "git@" at the beginning
  12. # of the URL) must be excluded.
  13. url: "git.company.tld:it/grafana-dashboards.git"
  14. # Path to the private key used to authenticate on Git. It is recommended to
  15. # use a passphraseless key.
  16. private_key: /etc/grafana-dashboard-manager/id_rsa_nopasswd
  17. # Path to the directory where the git repository lies on the disk. If the
  18. # directory doesn't exist, it will be created and the repository will be
  19. # cloned into it.
  20. clone_path: /tmp/grafana-dashboards
  21. # Settings to configure the Git webhook. Currently only GitLab webhooks are
  22. # supported.
  23. webhook:
  24. # Interface the webhook will listen on.
  25. interface: 127.0.0.1
  26. # Port the webhool will listen on.
  27. port: 8080
  28. # Path on which the webhook will live. Full webhook URL will be
  29. # interface:port/path.
  30. path: /gitlab-webhook
  31. # Secret GitLab will use to authenticate the requests.
  32. secret: mysecret