Browse Source

Ajout d'un répertoire de définition des dashboards

tags/pkg/stable/eole-2.7.0/1.0.0-0
William Petit 5 months ago
parent
commit
628fdafdea
3 changed files with 12 additions and 1 deletions
  1. 1
    0
      dicos/70_prometheus.xml
  2. 10
    0
      tmpl/grafana-dashboards.yml
  3. 1
    1
      tmpl/grafana.ini

+ 1
- 0
dicos/70_prometheus.xml View File

@@ -7,6 +7,7 @@
7 7
         <file filelist='prometheus-alertmanager' name='/etc/prometheus/rules.d/alert-rules.yml' mkdir='True' rm='True'/>
8 8
         <file filelist='prometheus-alertmanager' name='/etc/prometheus/rules.d/predict-rules.yml' mkdir='True' rm='True'/>
9 9
         <file filelist='grafana'      name='/etc/grafana/grafana.ini'                mkdir='True' rm='True'/>
10
+        <file filelist='grafana'      name='/etc/grafana/provisioning/dashboards/eole.yml' source='grafana-dashboards.yml'     mkdir='True' rm='True'/>
10 11
 
11 12
         <service>prometheus</service>
12 13
         <service>prometheus-alertmanager</service>

+ 10
- 0
tmpl/grafana-dashboards.yml View File

@@ -0,0 +1,10 @@
1
+# # config file version
2
+apiVersion: 1
3
+
4
+providers:
5
+- name: 'eole'
6
+  orgId: 1
7
+  folder: ''
8
+  type: file
9
+  options:
10
+    path: /var/lib/grafana/dashboards

+ 1
- 1
tmpl/grafana.ini View File

@@ -21,7 +21,7 @@
21 21
 ;plugins = /var/lib/grafana/plugins
22 22
 
23 23
 # folder that contains provisioning config files that grafana will apply on startup and while running.
24
-; provisioning = conf/provisioning
24
+provisioning = conf/provisioning
25 25
 
26 26
 #################################### Server ####################################
27 27
 [server]

Loading…
Cancel
Save