Skip to content
This repository was archived by the owner on May 31, 2023. It is now read-only.

Commit 03fab02

Browse files
authored
Merge pull request #66 from bitfag/master
[ci skip] Add examples for datasource and dashboard configs
2 parents 515559d + b41f5ff commit 03fab02

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,26 @@ All variables which can be overridden are stored in [defaults/main.yml](defaults
4949
| `grafana_dashboards` | [] | List of dashboards which should be imported |
5050
| `grafana_datasources` | [] | List of datasources which should be configured |
5151

52+
Datasource example:
53+
54+
```yaml
55+
grafana_datasources:
56+
- name: prometheus
57+
type: prometheus
58+
access: proxy
59+
url: 'http://{{ prometheus_web_listen_address }}'
60+
basicAuth: false
61+
```
62+
63+
Dashboard example:
64+
65+
```yaml
66+
grafana_dashboards:
67+
- dashboard_id: 111
68+
revision_id: 1
69+
datasource: prometheus
70+
```
71+
5272
## Supported CPU Architectures
5373
5474
Detection is done automatically and packages are taken from different channels according to CPU architecture:

0 commit comments

Comments
 (0)