vbezgachev / maxctrl_exporter

MaxScale metrics exporter for Prometheus
Apache License 2.0
12 stars 12 forks source link

Connect to secure admin api #6

Closed pgporada closed 3 years ago

pgporada commented 3 years ago

This exporter doesn't appear to be able to connect to maxscale when the REST API has a TLS certificate. In my testing case I'm running maxscale on 0.0.0.0:8989 with a TLS cert and I tell maxctrl to connect to the SAN which is server.example.com

maxctrl --secure --tls-ca-cert /etc/maxscale/tls/ca.cert --hosts $(hostname):8989 list servers

Do I always need to send a username/password when running the exporter?

vbezgachev commented 3 years ago

@pgporada I have implemented basic authentication only. So yes - you need to send a username and password. TLS requires some work (as described, e.g., here). Though, I am not sure if I can find time in the next couple of weeks 😞

pgporada commented 3 years ago

Thanks for the link. What I've ended up doing is copying most of the consul_exporter guts and am slowly trying to rebuild what you've done here on top of that code. It's ... going.