Tool to help you manage your Grafana dashboards using Git.

config.example.yaml 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. # Author of the commit created in the puller.
  25. commits_author:
  26. # Author's name.
  27. name: Grafana Dashboard Manager
  28. # Author's email.
  29. email: grafana-dashboard-manager@company.tld
  30. # Settings to configure the Git webhook. Currently only GitLab webhooks are
  31. # supported.
  32. webhook:
  33. # Interface the webhook will listen on.
  34. interface: 127.0.0.1
  35. # Port the webhool will listen on.
  36. port: 8080
  37. # Path on which the webhook will live. Full webhook URL will be
  38. # interface:port/path.
  39. path: /gitlab-webhook
  40. # Secret GitLab will use to authenticate the requests.
  41. secret: mysecret