diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-06-16 16:02:03 +0200 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-06-17 08:41:42 +0200 |
commit | 75093a62fdb06bdf672b90e7c1da9a356a6397c7 (patch) | |
tree | da6d6ae81639118adbde20dc10ce96f9fce956fd /ansible/roles/kube-prometheus-stack/defaults | |
parent | 86552728e74958d9b0562f747ad83575f614c882 (diff) |
[ANSIBLE] Configure custom Grafana dashboard
A new dashboard provider is set up in Grafana which reads
the dash json definition from the file uploaded to Grafana PV
Change-Id: I2704fe85e838e9aba2a846172334af467b9f2045
Issue-ID: INT-1926
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles/kube-prometheus-stack/defaults')
-rw-r--r-- | ansible/roles/kube-prometheus-stack/defaults/main.yml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ansible/roles/kube-prometheus-stack/defaults/main.yml b/ansible/roles/kube-prometheus-stack/defaults/main.yml index d6b49d47..74d6564a 100644 --- a/ansible/roles/kube-prometheus-stack/defaults/main.yml +++ b/ansible/roles/kube-prometheus-stack/defaults/main.yml @@ -7,6 +7,19 @@ kube_prometheus_stack: helm_values: grafana: adminPassword: admin + dashboardProviders: + dashboardproviders.yaml: + apiVersion: 1 + providers: + - name: 'custom' + orgId: 1 + folder: 'Custom' + type: file + disableDeletion: false + editable: true + updateIntervalSeconds: 60 + options: + path: /var/lib/grafana/dashboards/custom persistence: type: pvc enabled: true @@ -26,4 +39,3 @@ kube_prometheus_stack: resources: requests: storage: 6Gi - selector: {} |