1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- # Settings to connect to the Grafana instance.
- grafana:
- # Base URL for the Grafana instance.
- base_url: https://grafana.company.tld
- # Grafana API key. This is generated by Grafana, as explained at
- # http://docs.grafana.org/http_api/auth/#create-api-token
- api_key: apiauthkey
- # If set, all dashboards with a name starting with this prefix will be
- # ignored by both the puller and the pusher. This setting is
- # case-insensitive and optional.
- ignore_prefix: test
-
- # Settings to interact with the Git repository. Currently only SSH repos are
- # supported.
- git:
- # SSH URL to the repository. The user part (usually "git@" at the beginning
- # of the URL) must be excluded.
- url: "git.company.tld:it/grafana-dashboards.git"
- # SSH user that can pull and push from and to the git repository. Usually
- # it's just "git".
- user: git
- # Path to the private key used to authenticate on Git. It is recommended to
- # use a passphraseless key.
- private_key: /etc/grafana-dashboard-manager/id_rsa_nopasswd
- # Path to the directory where the git repository lies on the disk. If the
- # directory doesn't exist, it will be created and the repository will be
- # cloned into it.
- clone_path: /tmp/grafana-dashboards
- # Author of the commit created in the puller.
- commits_author:
- # Author's name.
- name: Grafana Dashboard Manager
- # Author's email.
- email: grafana-dashboard-manager@company.tld
-
- # Configuration for the Git -> Grafana pusher.
- pusher:
- # Mode which will define how the pusher will sync with the Git remote.
- # Currently, only two modes are supported:
- # webhook: sets up a webhook which will listen for requests from the
- # Git remote, and use the content of a request's body to
- # determine what to push to Grafana. Currently only GitLab
- # webhooks are supported.
- # git-pull: sets up a routine that will pull from the Git remote on a
- # given interval, and compare the updated Git history with the
- # previous one to determine what to push to Grafana.
- sync_mode: webhook
- # Configuration for the given sync mode. The current uncommented exemple
- # works for the "webhook" mode. Here's a config example for the "git-pull"
- # mode:
- #
- # config:
- # # Interval at which the remote should be pulled, in seconds.
- # interval: 3600
- #
- config:
- # Interface the webhook will listen on.
- interface: 127.0.0.1
- # Port the webhool will listen on.
- port: 8080
- # Path on which the webhook will live. Full webhook URL will be
- # interface:port/path.
- path: /gitlab-webhook
- # Secret GitLab will use to authenticate the requests.
- secret: mysecret
|