summaryrefslogtreecommitdiffstats
path: root/ansible/roles/kube-prometheus-stack/tasks
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-06-16 16:02:03 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-06-17 08:41:42 +0200
commit75093a62fdb06bdf672b90e7c1da9a356a6397c7 (patch)
treeda6d6ae81639118adbde20dc10ce96f9fce956fd /ansible/roles/kube-prometheus-stack/tasks
parent86552728e74958d9b0562f747ad83575f614c882 (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/tasks')
-rw-r--r--ansible/roles/kube-prometheus-stack/tasks/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/kube-prometheus-stack/tasks/main.yml b/ansible/roles/kube-prometheus-stack/tasks/main.yml
index 596e4b5a..e190b758 100644
--- a/ansible/roles/kube-prometheus-stack/tasks/main.yml
+++ b/ansible/roles/kube-prometheus-stack/tasks/main.yml
@@ -10,6 +10,11 @@
dest: "{{ kube_prometheus_stack.helm_values_file }}"
content: "{{ kube_prometheus_stack.helm_values | combine(kube_prometheus_helm_values | default({}), recursive=True) | to_nice_yaml }}"
+- name: Upload custom Grafana dashboard
+ copy:
+ src: grafana_dashboard.json
+ dest: "{{ nfs_mount_path }}/kube-prometheus/kube-prometheus-grafana/dashboards/custom/"
+
- name: "Install Helm release {{ kube_prometheus_stack.helm_release_name }}"
community.kubernetes.helm:
release_name: "{{ kube_prometheus_stack.helm_release_name }}"