Ajout de la possibilité de configurer la rétention des données
This commit is contained in:
parent
a5b6333599
commit
61155f10f4
|
@ -1,7 +1,8 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<creole>
|
<creole>
|
||||||
<files>
|
<files>
|
||||||
<file filelist='prometheus' name='/etc/prometheus/prometheus.yml' mkdir='True' rm='True'/>
|
<file filelist='prometheus' name='/etc/default/prometheus' source='prometheus.defaults' mkdir='True' rm='True'/>
|
||||||
|
<file filelist='prometheus' name='/etc/prometheus/prometheus.yml' mkdir='Trues' rm='True'/>
|
||||||
<file filelist='alertmanager' name='/etc/prometheus/alertmanager.yml' mkdir='True' rm='True'/>
|
<file filelist='alertmanager' name='/etc/prometheus/alertmanager.yml' mkdir='True' rm='True'/>
|
||||||
<file filelist='alertmanager' name='/etc/prometheus/rules.d/alert-rules.yml' mkdir='True' rm='True'/>
|
<file filelist='alertmanager' name='/etc/prometheus/rules.d/alert-rules.yml' mkdir='True' rm='True'/>
|
||||||
<file filelist='grafana' name='/etc/grafana/grafana.ini' mkdir='True' rm='True'/>
|
<file filelist='grafana' name='/etc/grafana/grafana.ini' mkdir='True' rm='True'/>
|
||||||
|
@ -30,6 +31,9 @@
|
||||||
<variable name='activerAlertmanager' type='oui/non' description="Activer le service d'alertes">
|
<variable name='activerAlertmanager' type='oui/non' description="Activer le service d'alertes">
|
||||||
<value>oui</value>
|
<value>oui</value>
|
||||||
</variable>
|
</variable>
|
||||||
|
<variable name='promStorageRetention' type='number' description='Durée de rétention des métriques (en heures)'>
|
||||||
|
<value>24</value>
|
||||||
|
</variable>
|
||||||
<variable name='prometheusJobName' type='string' description="Nom du job ajouté au label">
|
<variable name='prometheusJobName' type='string' description="Nom du job ajouté au label">
|
||||||
<value>prometheus</value>
|
<value>prometheus</value>
|
||||||
</variable>
|
</variable>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
PROMETHEUS_OPTS='--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus/data --storage.local.retention=%%{promStorageRetention}h"
|
Loading…
Reference in New Issue