You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affected Puppet, Ruby, OS and module versions/distributions
Puppet:
Ruby:
Distribution:
Module version:
How to reproduce (e.g Puppet code you use)
configured mysqld_exporter with DB Connection
What are you seeing
no conection to DB possible, when DB is configured for ssl conections
What behaviour did you expect instead
connection to DB like the mysql cli
Output log
caller=exporter.go:149 msg="Error pinging mysqld" err="Error 3159: Connections using insecure transport are prohibited while --require_secure_transport=ON."
Any additional information you'd like to impart
I'm not sure if this is the right place for this.
mysqld_exporter decides if it does a ssl connection on the value ssl-ca in my.cnf file provided. https://github.com/prometheus/mysqld_exporter/blob/e2ff660f50422245cdae9516dbf167e8c889c8bf/mysqld_exporter.go#L142
So it fails in case of this puppet modul, because the value istn't there.
With this puppet module i cannot set thsi config value ( e.g. to ssl-ca=/etc/ssl/certs/ca-certificates.crt ). So it will always try an unsecure conection.
FYI: I also can not use manage_service false because of the notify command expects the service to be there
Server Error: Could not find resource 'Service[mysqld_exporter]' in parameter 'notify' (file: /etc/puppetlabs/code/environments/production/modules/prometheus/manifests/mysqld_exporter.pp, line: 124)
The text was updated successfully, but these errors were encountered:
I have thought about the problem and i think that the modul should have support for ssl connections to the mysql server, regardless how its implemented in the mysqld_exporter.
I have written changes (in my limited understanding of the code) for mysqld_exporter.pp and my.cnf.epp
At the moment i struggeling hard with getting a pull request on the way ;)
Sorry i work mostly directly with git cli, not github... so i'm stuck there, hopefully i will figure it out next week when i have a little bit more time on my hand.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
configured mysqld_exporter with DB Connection
What are you seeing
no conection to DB possible, when DB is configured for ssl conections
What behaviour did you expect instead
connection to DB like the mysql cli
Output log
Any additional information you'd like to impart
I'm not sure if this is the right place for this.
mysqld_exporter decides if it does a ssl connection on the value ssl-ca in my.cnf file provided.
https://github.com/prometheus/mysqld_exporter/blob/e2ff660f50422245cdae9516dbf167e8c889c8bf/mysqld_exporter.go#L142
So it fails in case of this puppet modul, because the value istn't there.
With this puppet module i cannot set thsi config value ( e.g. to ssl-ca=/etc/ssl/certs/ca-certificates.crt ). So it will always try an unsecure conection.
FYI: I also can not use
manage_service false
because of the notify command expects the service to be thereThe text was updated successfully, but these errors were encountered: