Tool to help you manage your Grafana dashboards using Git.

config.example.yaml 1.5KB

12345678910111213141516171819202122232425262728293031323334353637
  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. # SSH user that can pull and push from and to the git repository. Usually
  15. # it's just "git".
  16. user: git
  17. # Path to the private key used to authenticate on Git. It is recommended to
  18. # use a passphraseless key.
  19. private_key: /etc/grafana-dashboard-manager/id_rsa_nopasswd
  20. # Path to the directory where the git repository lies on the disk. If the
  21. # directory doesn't exist, it will be created and the repository will be
  22. # cloned into it.
  23. clone_path: /tmp/grafana-dashboards
  24. # Settings to configure the Git webhook. Currently only GitLab webhooks are
  25. # supported.
  26. webhook:
  27. # Interface the webhook will listen on.
  28. interface: 127.0.0.1
  29. # Port the webhool will listen on.
  30. port: 8080
  31. # Path on which the webhook will live. Full webhook URL will be
  32. # interface:port/path.
  33. path: /gitlab-webhook
  34. # Secret GitLab will use to authenticate the requests.
  35. secret: mysecret