[ANSIBLE] Configure custom Grafana dashboard
[oom/offline-installer.git] / ansible / roles / kube-prometheus-stack / defaults / main.yml
1 ---
2 kube_prometheus_stack:
3   k8s_namespace: kube-prometheus
4   helm_release_name: kube-prometheus-stack
5   helm_timeout: "60s"
6   helm_values_file: "{{ app_data_path }}/kube_prometheus_values.yaml"
7   helm_values:
8     grafana:
9       adminPassword: admin
10       dashboardProviders:
11         dashboardproviders.yaml:
12           apiVersion: 1
13           providers:
14             - name: 'custom'
15               orgId: 1
16               folder: 'Custom'
17               type: file
18               disableDeletion: false
19               editable: true
20               updateIntervalSeconds: 60
21               options:
22                 path: /var/lib/grafana/dashboards/custom
23       persistence:
24         type: pvc
25         enabled: true
26         storageClassName: kube-prometheus-grafana
27         accessModes:
28           - ReadWriteOnce
29         size: 4Gi
30     prometheus:
31       prometheusSpec:
32         scrapeInterval: 60s
33         storageSpec:
34           disableMountSubPath: true
35           volumeClaimTemplate:
36             spec:
37               storageClassName: kube-prometheus-prometheus
38               accessModes: ["ReadWriteOnce"]
39               resources:
40                 requests:
41                   storage: 6Gi