eole-prometheus/dicos/70_prometheus.xml

111 lines
5.2 KiB
XML
Raw Normal View History

2018-04-16 12:54:20 +02:00
<?xml version="1.0" encoding="utf-8"?>
<creole>
<files>
<file filelist='prometheus' name='/etc/prometheus/prometheus.yml' source='prometheus.yml' mkdir='True' rm='True'/>
<file filelist='grafana' name='/etc/grafana/grafana.ini' source='grafana.ini' mkdir='True' rm='True'/>
2018-04-16 12:54:20 +02:00
<service>prometheus</service>
<service>grafana-server</service>
2018-04-16 12:54:20 +02:00
<service_access service='prometheus'>
<port service_accesslist="saLemon">80</port>
<port service_accesslist="saLemon">443</port>
<port service_accesslist="prometheus">9090</port>
</service_access>
<service_access service='grafana-server'>
<port service_accesslist="grafana">3000</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">
<value>oui</value>
2018-05-25 16:00:44 +02:00
</variable>
</family>
2018-05-25 16:00:44 +02:00
<family name='prometheus'>
<variable name='activer_grafana' type='oui/non' description="Activer le service grafana sur le serveur">
<value>oui</value>
</variable>
2018-05-25 16:00:44 +02:00
<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='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>
2018-04-16 12:54:20 +02:00
</family>
2018-06-04 10:28:55 +02:00
<family name='Clients prometheus'>
<variable name='ajout_client_prometheus' type='oui/non' description="Ajouter un nouveau client à Prometheus">
<value>non</value>
</variable>
<variable name='prCli' type='string' description='Nom du client prometheus' multi='True'/>
<variable name='prCliIP' type='ip' description="Adresse IP du client prometheus"/>
2018-06-04 10:33:36 +02:00
<variable name='prCliSonde' type='string' description="Sonde a utiliser pour ce client">
<value>Node Exporter</value>
</variable>
2018-06-04 10:42:19 +02:00
<variable name='prCliPort' type='number' description="Port d'écoute de la sonde du client"/>
2018-06-04 10:28:55 +02:00
</family>
<family name="grafana">
<variable name='grafana_domain' type='string' description="Nom de Domaine ou IP pour accèder à l'interface Grafana" mandatory='True'>
<value>localhost</value>
</variable>
<variable name='grafana_session_max_lifetime' type='string' description="Durée avant déconnexion de l'interface Grafana (en seconde)">
<value>86400</value>
</variable>
<variable name='grafana_admin_passwd' type='string' description="Mot de passe admin pour la première connexion">
<value>admin</value>
</variable>
<variable name='grafana_sign_up' type='string' description="Activer l'enregistrement automatique">
<value>false</value>
</variable>
<variable name='grafana_auth_anonymous' type='string' description="Activer l'accès aux utilisateurs non enregistrés">
<value>false</value>
</variable>
</family>
2018-04-16 12:54:20 +02:00
</variables>
<constraints>
2018-06-04 10:28:55 +02:00
<group master='prCli'>
<slave>prCliIP</slave>
<slave>prCliSonde</slave>
</group>
<check name='valid_enum' target='prCliSonde'>
2018-06-04 10:42:19 +02:00
<param>['Node Exporter','Port']</param>
2018-06-04 10:28:55 +02:00
</check>
<condition name='disabled_if_in' source='activer_prometheus'>
<param>non</param>
<target type='family'>prometheus</target>
<target type='filelist'>prometheus</target>
<target type='variable'>activer_grafana</target>
</condition>
<condition name='disabled_if_in' source='activer_grafana'>
<param>non</param>
<target type='family'>grafana</target>
<target type='filelist'>grafana</target>
</condition>
<condition name='disabled_if_in' source='ajout_client_prometheus'>
<param>non</param>
2018-06-04 10:30:13 +02:00
<target type='variable'>prCli</target>
<target type='variable'>prCliIP</target>
<target type='variable'>prCliSonde</target>
2018-06-04 10:42:19 +02:00
<target type='variable'>prCliPort</target>
</condition>
2018-06-04 10:42:19 +02:00
<condition name='disabled_if_not_in' source='prCliSonde'>
<param>Port</param>
<target type='variable'>prCliPort</target>
</condition>
2018-04-16 12:54:20 +02:00
</constraints>
<help>
</help>
</creole>