I am confused when you say "
Any service discovery mechanism can be used to scrape either HTTP or HTTPS targets"
1. Can Prometheus scrape TLS and non-TLS targets at the same time using a single k8s scrape job? If yes, could you point me an example configuration?
2. When I looked at the TLS configuration:
# CA certificate to validate API server certificate with.
# Certificate and key files for client cert authentication to the server.
# Disable validation of the server certificate.
Lets say we have service A, B, C and D deployed on k8s. Only A and B exposes metrics over TLS. C and D expose over non-TLS.
Could you point me how mTLS configuration and k8s scrape configuration look like?
How can Prometheus identify cert and key files if we don't explicitly mention them?
Thanks,
Teja