diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-19 14:51:56 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-19 14:51:56 +0200 |
| commit | 60f9e792540cd3d56fb0329bf30fb4eb9ad9cf64 (patch) | |
| tree | b79d9f5044441bd2a27ae922e2e87c6b52043000 /roles/grafana/templates/datasources | |
| parent | 0460ecb3cfefc67a79d46d6d8f56676d77c9f507 (diff) | |
Add Grafana role
Diffstat (limited to 'roles/grafana/templates/datasources')
| -rw-r--r-- | roles/grafana/templates/datasources/prometheus.yml.j2 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/grafana/templates/datasources/prometheus.yml.j2 b/roles/grafana/templates/datasources/prometheus.yml.j2 new file mode 100644 index 00000000..1c60e9d9 --- /dev/null +++ b/roles/grafana/templates/datasources/prometheus.yml.j2 @@ -0,0 +1,12 @@ +apiVersion: 1 + +datasources: +{% for ds in grafana_datasources %} + - name: "{{ ds.name }}" + type: "{{ ds.type | default('prometheus') }}" + uid: "{{ ds.uid }}" + access: proxy + url: "{{ ds.url }}" + isDefault: {{ ds.default | default(false) }} + editable: false +{% endfor %} |
