-
-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysqld_exporter configuration for ssl not possible #604
Comments
Workaround
|
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 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. |
the initial week turned into over a year, but now i created the pull request i think the archlinux test failures are not connected.. |
add options to set tls parameters for mysql config used by mysqld_exporter
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: