Tool to help you manage your Grafana dashboards using Git.

config.example.yaml 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. # If set, all dashboards with a name starting with this prefix will be
  9. # ignored by both the puller and the pusher. This setting is
  10. # case-insensitive and optional.
  11. ignore_prefix: test
  12. # Settings to interact with the Git repository. Currently only SSH repos are
  13. # supported.
  14. git:
  15. # SSH URL to the repository. The user part (usually "git@" at the beginning
  16. # of the URL) must be excluded.
  17. url: "git.company.tld:it/grafana-dashboards.git"
  18. # SSH user that can pull and push from and to the git repository. Usually
  19. # it's just "git".
  20. user: git
  21. # Path to the private key used to authenticate on Git. It is recommended to
  22. # use a passphraseless key.
  23. private_key: /etc/grafana-dashboard-manager/id_rsa_nopasswd
  24. # Path to the directory where the git repository lies on the disk. If the
  25. # directory doesn't exist, it will be created and the repository will be
  26. # cloned into it.
  27. clone_path: /tmp/grafana-dashboards
  28. # Author of the commit created in the puller.
  29. commits_author:
  30. # Author's name.
  31. name: Grafana Dashboard Manager
  32. # Author's email.
  33. email: grafana-dashboard-manager@company.tld
  34. # Settings to configure the Git webhook. Currently only GitLab webhooks are
  35. # supported.
  36. webhook:
  37. # Interface the webhook will listen on.
  38. interface: 127.0.0.1
  39. # Port the webhool will listen on.
  40. port: 8080
  41. # Path on which the webhook will live. Full webhook URL will be
  42. # interface:port/path.
  43. path: /gitlab-webhook
  44. # Secret GitLab will use to authenticate the requests.
  45. secret: mysecret