Hi,
I was going through the Prometheus tls configuration. I've come across two different tls configurations in Prometheus.
One is tls_config and the other one is tls_server_config.
I want to understand the difference between these two.
I want to achieve the following:
1) I've a service running with MTLS, and I want Prometheus to scrape metrics from that service.
2) Service needs client cert and client key and cacert as well.
For ex:
1) curl -v --cert ./client.crt --key ./client.key GET -H "Content-type: application/json" https://xxx.xxx.xxx.xx:xxxx/metrics --cacert server.crt
2) What if I don't want to pass cacert, I want to use -k(insecure in configuration) . How can I do that?
So, what configuration can I use in prometheus to achieve this?
Thanks,
Akshay