2018-04-16 12:54:20 +02:00
<?xml version="1.0" encoding="utf-8"?>
<creole >
<files >
2018-06-05 16:53:11 +02:00
<file filelist= 'prometheus' name= '/etc/prometheus/prometheus.yml' mkdir= 'True' rm= 'True' />
<file filelist= 'alertmanager' name= '/etc/prometheus/alertmanager.yml' mkdir= 'True' rm= 'True' />
<file filelist= 'grafana' name= '/etc/grafana/grafana.ini' mkdir= 'True' rm= 'True' />
2018-06-05 16:46:23 +02:00
2018-04-16 12:54:20 +02:00
<service > prometheus</service>
2018-06-05 16:46:23 +02:00
<service > alertmanager</service>
2018-06-01 10:51:39 +02:00
<service > grafana-server</service>
2018-04-16 12:54:20 +02:00
<service_access service= 'prometheus' >
2018-06-01 10:51:39 +02:00
<port service_accesslist= "saLemon" > 80</port>
<port service_accesslist= "saLemon" > 443</port>
<port service_accesslist= "prometheus" > 9090</port>
2018-05-28 16:57:39 +02:00
</service_access>
<service_access service= 'grafana-server' >
2018-06-01 10:51:39 +02:00
<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' >
2018-06-01 10:51:39 +02:00
<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>
2018-06-01 10:51:39 +02:00
</family>
2018-05-25 16:00:44 +02:00
<family name= 'prometheus' >
2018-06-01 10:51:39 +02:00
<variable name= 'activer_grafana' type= 'oui/non' description= "Activer le service grafana sur le serveur" >
2018-06-05 16:53:11 +02:00
<value > oui</value>
</variable>
<variable name= 'activerAlertmanager' type= 'oui/non' description= "Activer le service d'alertes" >
<value > oui</value>
2018-06-01 10:51:39 +02:00
</variable>
2018-06-05 16:53:11 +02:00
<variable name= 'prometheusJobName' type= 'string' description= "Nom du job ajouté au label" >
2018-04-17 12:32:05 +02:00
<value > prometheus</value>
2018-06-01 10:51:39 +02:00
</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>
2018-06-01 10:51:39 +02:00
<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' >
2018-04-17 12:32:05 +02:00
<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>
2018-06-05 16:46:23 +02:00
</variable>
<!-- Client standard -->
<variable name= 'prCli' type= 'string' description= 'Nom du client prometheus' multi= 'True' />
<variable name= 'prCliIP' type= 'ip' description= "Adresse IP du client prometheus" />
<variable name= 'prCliSonde' type= 'string' description= "Sonde a utiliser pour ce client" >
<value > Node Exporter</value>
</variable>
2018-06-04 10:47:01 +02:00
<variable name= 'addPrOpenCli' type= 'oui/non' description= "Ajouter un client personnalisé" >
<value > non</value>
2018-06-05 16:46:23 +02:00
</variable>
<!-- Client libre -->
<variable name= 'prOpenCli' type= 'string' description= 'Nom du client personnalisé prometheus' multi= 'True' />
<variable name= 'prOpenCliIP' type= 'ip' description= "Adresse IP" />
<variable name= 'prOpenCliPort' type= 'number' description= "Port d'écoute de la sonde" />
2018-06-04 10:28:55 +02:00
</family>
2018-06-01 10:51:39 +02:00
<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>
2018-05-28 16:57:39 +02:00
<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>
2018-06-01 10:51:39 +02:00
</family>
2018-06-05 16:46:23 +02:00
<family name= "alertes prometheus" >
<variable name= 'alSMTPHost' type= 'string' description= "Adresse du serveur SMTP pour l'envois des alertes" />
<variable name= 'alSMTPPort' type= 'string' description= "Port d'écoute du serveur SMTP pour l'envois des alertes" />
<variable name= 'alFrom' type= 'string' description= "Adresse d'origine des emails d'alerte" />
<variable name= 'alSMTPAuth' type= 'oui/non' description= "Authentification requise sur le serveur SMTP ?" >
<value > non</value>
</variable>
<variable name= 'alSMTPUser' type= 'string' description= "Utilisateur SMTP" />
<variable name= 'alSMTPPass' type= 'string' description= "Mot de passe" />
<variable name= 'alDefaultReceiver' type= 'string' description= 'Nom du "receiver" par défaut' />
2018-06-05 16:56:48 +02:00
<variable name= 'alReceiver' type= 'string' description= "Nom du destinataire" multi= 'True' />
2018-06-05 16:46:23 +02:00
<variable name= 'alReceiverEmail' type= 'string' description= "Adresse email du destinataire" />
2018-06-05 16:55:03 +02:00
<variable name= 'alRoute' type= 'string' description= "Nom de la rêgle de distribution des alertes" multi= "True" />
2018-06-05 16:46:23 +02:00
<variable name= 'alRouteMatchSource' type= 'string' description= 'Source de correspondance' />
<variable name= 'alRouteMatchValue' type= 'string' description= 'Valeur attendue' />
<variable name= 'alRouteMatchReceiver' type= 'string' description= "Equipe destinataire de l'alerte" />
2018-06-05 16:55:03 +02:00
<variable name= 'alRouteRegxp' type= 'string' description= "Rêgle de distribution des alertes" multi= "True" />
2018-06-05 16:46:23 +02:00
<variable name= 'alRouteMatchRegExpSource' type= 'string' description= 'Source de correspondance' />
<variable name= 'alRouteMatchRegExp' type= 'string' description= 'Expression régulière' />
<variable name= 'alRouteMatchRegxpRecv' type= 'string' description= "Equipe destinataire de l'alerte (regxp)" />
2018-06-05 16:55:45 +02:00
<variable name= 'alSubRoute' type= 'string' description= "Nom de la rêgle maitresse" multi= 'True' />
2018-06-05 16:46:23 +02:00
<variable name= 'alSubRouteMatchSource' type= 'string' description= 'Source de correspondance' />
<variable name= 'alSubRouteMatchValue' type= 'string' description= 'Valeur attendue' />
<variable name= 'alSubRouteMatchReceiver' type= 'string' description= "Equipe destinataire de l'alerte" />
</family>
<separators >
2018-06-05 16:53:11 +02:00
<separator name= 'activer_grafana' > Services complèmentairse</separator>
<separator name= 'prometheusJobName' > Configuration du serveur Prometheus</separator>
2018-06-05 16:46:23 +02:00
<separator name= 'alSMTPHost' > Configuration SMTP pour l'envois des alertes</separator>
<separator name= 'alDefaultReceiver' > Destinatires</separator>
<separator name= 'alRoute' > Rêgles de distribution</separator>
<separator name= 'alSubRoute' > Sous-rêgles de distribution</separator>
</separators>
2018-04-16 12:54:20 +02:00
</variables>
<constraints >
2018-06-04 10:28:55 +02:00
2018-06-05 16:46:23 +02:00
<group master= 'alReceiver' >
<slave > alReceiverEmail</slave>
</group>
<group master= 'alRoute' >
<slave > alRouteMatchSource</slave>
<slave > alRouteMatchValue</slave>
<slave > alRouteMatchReceiver</slave>
</group>
<group master= 'alRouteRegxp' >
<slave > alRouteMatchRegExpSource</slave>
<slave > alRouteMatchRegExp</slave>
<slave > alRouteMatchRegxpRecv</slave>
</group>
2018-06-04 10:51:53 +02:00
2018-06-05 16:46:23 +02:00
<group master= 'alSubRoute' >
<slave > alSubRouteMatchSource</slave>
<slave > alSubRouteMatchValue</slave>
<slave > alSubRouteMatchReceiver</slave>
</group>
<group master= 'prCli' >
<slave > prCliIP</slave>
<slave > prCliSonde</slave>
</group>
<group master= 'prOpenCli' >
<slave > prOpenCliIP</slave>
<slave > prOpenCliPort</slave>
</group>
<check name= 'valid_enum' target= 'prCliSonde' >
<param > ['Node Exporter','Port']</param>
</check>
2018-06-04 10:28:55 +02:00
2018-04-17 12:32:05 +02:00
<condition name= 'disabled_if_in' source= 'activer_prometheus' >
<param > non</param>
<target type= 'family' > prometheus</target>
2018-06-05 16:53:11 +02:00
<target type= 'family' > alertes prometheus</target>
2018-04-17 12:32:05 +02:00
<target type= 'filelist' > prometheus</target>
2018-05-28 16:57:39 +02:00
<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>
2018-04-17 12:32:05 +02:00
</condition>
2018-06-05 16:53:11 +02:00
<condition name= 'disabled_if_in' source= 'activerAlertmanager' >
<param > non</param>
<target type= 'family' > alertes prometheus</target>
<target type= 'filelist' > alertmanager</target>
</condition>
2018-04-17 12:32:05 +02:00
<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-04-17 12:32:05 +02:00
</condition>
2018-06-05 16:46:23 +02:00
<condition name= 'disabled_if_in' source= 'addPrOpenCli' >
<param > non</param>
2018-06-04 10:47:01 +02:00
<target type= 'variable' > prOpenCli</target>
<target type= 'variable' > prOpenCliIP</target>
<target type= 'variable' > prOpenCliPort</target>
2018-06-05 16:46:23 +02:00
</condition>
2018-04-16 12:54:20 +02:00
</constraints>
<help >
</help>
</creole>