eole-prometheus/dicos/70_prometheus.xml

66 lines
3.0 KiB
XML
Raw Normal View History

2018-04-16 12:54:20 +02:00
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files>
2018-05-25 16:22:39 +02:00
<package>prometheus</package>
<file filelist='prometheus' name='/etc/prometheus/prometheus.yml' source='prometheus.yml' mkdir='True' rm='True'/>
2018-04-16 12:54:20 +02:00
<service>prometheus</service>
<service_access service='prometheus'>
<port service_accesslist="saLemon">80</port>
<port service_accesslist="saLemon">443</port>
<port>9090</port>
2018-05-25 16:00:44 +02:00
<port>9100</port>
2018-04-16 12:54:20 +02:00
</service_access>
</files>
<variables>
2018-05-25 16:00:44 +02:00
<family name='services'>
<variable name='activer_prometheus' type='oui/non' description="Activer le service prometheus sur le serveur">
2018-05-25 16:00:44 +02:00
<value>oui</value>
</variable>
</family>
<family name='prometheus'>
<variable name='prometheusJobName' type='string' description="Nom du job ajouté au label">
<value>prometheus</value>
</variable>
2018-05-25 16:00:44 +02:00
<variable name='prometheusScrapeInterval' type='string' description="Intervalle de récupération des données sur les différents noeuds">
2018-04-16 12:54:20 +02:00
<value>15s</value>
</variable>
2018-05-25 16:00:44 +02:00
<variable name='prometheusEvaluationInterval' type='string' description="Intervalle entre deux évaluations de règles">
2018-04-16 12:54:20 +02:00
<value>30s</value>
</variable>
<variable name='prometheusScrapeTimeout' type='string' description="Temps d'attente avant que la récupération de données échoue">
<value>10s</value>
</variable>
<variable name='ajout_client_prometheus' type='oui/non' description="Ajouter un nouveau client à Prometheus">
<value>non</value>
</variable>
<variable name='url_nouveau_client_prometheus' type='string' description="url/IP du nouveau client" multi="True" mandatory='True'>
<value>client.prometheus.lan</value>
</variable>
<variable name='job_name_node' type='string' description="Nom du job pour les noeuds" mode='expert'>
<value>node</value>
</variable>
2018-05-17 10:27:33 +02:00
<variable name='job_file_config' type='string' description="Emplacement des fichiers de configuration des noeuds" auto_freeze='True' mode='expert' mandatory='True'>
<value>/etc/prometheus/nodes</value>
</variable>
2018-04-16 12:54:20 +02:00
</family>
</variables>
<constraints>
<condition name='disabled_if_in' source='activer_firewall'>
<param>non</param>
<target type='variable'>activer_prometheus</target>
</condition>
<condition name='disabled_if_in' source='activer_prometheus'>
<param>non</param>
<target type='family'>prometheus</target>
<target type='filelist'>prometheus</target>
</condition>
<condition name='disabled_if_in' source='ajout_client_prometheus'>
<param>non</param>
<target type='variable'>url_nouveau_client_prometheus</target>
</condition>
2018-04-16 12:54:20 +02:00
</constraints>
<help>
</help>
</creole>