Did you see https://github.com/prometheus/mysqld_exporter#setting-the-mysql-servers-data-source-name ? It reads like you will need to export the MySQL server connection in the DATA_SOURCE_NAME if you change the default values.
[email protected] schrieb am Montag, 31. Mai 2021 um 07:14:15 UTC+2: > No one? > > Op vrijdag 28 mei 2021 om 18:35:05 UTC+2 schreef Dimitri Gesquiere: > >> Is it possible to use prometheus exporter when mysql is running on a >> different >> port then 3306? When i change the /etc/.mysqld_exporter.cnf file for >> looking at another port. it still tries to connect with port 3306. changes >> i have made are. >> >> [client] >> user=mysqld_exporter >> password=apassword >> host=localhost:portnumber >> >> exporter service is running with error >> level=error msg="Error pinging mysqld: dial tcp: lookup >> localhost:45654:3306: >> > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/2449ea48-ecf9-4107-8099-30e9228eab84n%40googlegroups.com.

