Browse Source

Adding support for config connection custom

2.6.2/develop
Philippe Caseiro 1 year ago
parent
commit
09f731809b
2 changed files with 4 additions and 1 deletions
  1. 3
    0
      dicos/72_mysql_exporter.xml
  2. 1
    1
      tmpl/prometheus-mysql-exporter.defaults

+ 3
- 0
dicos/72_mysql_exporter.xml View File

@@ -21,6 +21,9 @@
21 21
 				<value>non</value>
22 22
 			</variable>
23 23
 			<variable name='sndPrometheusServer' type='ip' exists='False' description="Adresse IP du serveur Prometheus"/>
24
+			<variable name='sndMysqlLoginConfig' type='string' description="Fichier de configuration a utiliser pour se connecter à la base" mode='expert'>
25
+				<value>/etc/mysql/debian.cnf</value>
26
+			</variable>
24 27
 		</family>
25 28
 	</variables>
26 29
 	<constraints>

+ 1
- 1
tmpl/prometheus-mysql-exporter.defaults View File

@@ -1,3 +1,3 @@
1 1
 # Prometheus Mysql defaults
2 2
 
3
-MY_EX_ARGS="--config.my-cnf=/etc/mysql/debian.cnf --log.level=info"
3
+MY_EX_ARGS="--config.my-cnf=%%sndMysqlLoginConfig --log.level=info"

Loading…
Cancel
Save