eole-prometheus/dicos/70_prometheus.xml

60 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<creole>
<files>
<file filelist='prometheus' name='/etc/prometheus/prometheus.yml' source='prometheus.yml' mkdir='True' rm='True'/>
<service>prometheus</service>
<service_access service='prometheus'>
<port service_accesslist="saLemon">80</port>
<port service_accesslist="saLemon">443</port>
<port>9090</port>
</service_access>
</files>
<variables>
<family name='prometheus'>
<variable name='activer_prometheus' type='oui/non' description="Activer le service prometheus sur le serveur">
<variable name='prometheusJobName' type='string' description='Nom du job ajouté au label'>
<value>prometheus</value>
</variable>
<variable name='prometheusScrapeInterval' type='string' description='Intervalle de récupération des données sur les différents noeuds'>
<value>15s</value>
</variable>
<variable name='prometheusEvaluationInterval' type='string' description='Intervalle entre deux évaluations de règles'>
<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>
<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>
</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>
</constraints>
<help>
</help>
</creole>