Philippe Caseiro 11 months ago
parent
commit
3eaa7feee1
1 changed files with 14 additions and 5 deletions
  1. 14
    5
      dicos/70_prometheus.xml

+ 14
- 5
dicos/70_prometheus.xml View File

@@ -47,12 +47,20 @@
47 47
             <variable name='ajout_client_prometheus' type='oui/non' description="Ajouter un nouveau client à Prometheus">
48 48
                 <value>non</value>
49 49
 			</variable>
50
+			<!-- Client standard  -->
50 51
 			<variable name='prCli' type='string' description='Nom du client prometheus' multi='True'/>
51 52
 			<variable name='prCliIP' type='ip' description="Adresse IP du client prometheus"/>
52 53
 			<variable name='prCliSonde' type='string' description="Sonde a utiliser pour ce client">
53 54
 				<value>Node Exporter</value>
54 55
 			</variable>
55
-			<variable name='prCliPort' type='number' description="Port d'écoute de la sonde du client"/>
56
+
57
+            <variable name='addPrOpenCli' type='oui/non' description="Ajouter un client personnalisé">
58
+                <value>non</value>
59
+			</variable>
60
+			<!-- Client libre  -->
61
+			<variable name='prOpenCli' type='string' description='Nom du client personnalisé prometheus' multi='True'/>
62
+			<variable name='prOpenCliIP' type='ip' description="Adresse IP"/>
63
+			<variable name='prOpenCliPort' type='number' description="Port d'écoute de la sonde"/>
56 64
         </family>
57 65
     <family name="grafana">
58 66
         <variable name='grafana_domain' type='string' description="Nom de Domaine ou IP pour accèder à l'interface Grafana" mandatory='True'>
@@ -98,11 +106,12 @@
98 106
             <target type='variable'>prCli</target>
99 107
             <target type='variable'>prCliIP</target>
100 108
             <target type='variable'>prCliSonde</target>
101
-            <target type='variable'>prCliPort</target>
102 109
         </condition>
103
-		<condition name='disabled_if_not_in' source='prCliSonde'>
104
-			<param>Port</param>
105
-			<target type='variable'>prCliPort</target>
110
+		<condition name='disabled_if_in' source='addPrOpenCli'>
111
+			<param>non</param>
112
+            <target type='variable'>prOpenCli</target>
113
+            <target type='variable'>prOpenCliIP</target>
114
+            <target type='variable'>prOpenCliPort</target>
106 115
 		</condition>
107 116
     </constraints>
108 117
     <help>