Per parent ticket, we are need a way to monitor the TLS certificate lifetime for our OpenSearch on K8s platform. Also, because OpenSearch terminates TLS directly instead of going through Envoy, we might not be able to get the same kind of HTTP metrics, error codes, etc that we can typically get for k8s-hosted services.†
We should be able to do this via Prometheus' support for kubernetes_sd_config , which we already use to autodiscovery scrape targets hosted in K8s. There wouldn't be too much difference, but we'd need to a few things to target the Blackbox exporter instead of scraping metrics, see this article for examples.
Creating this ticket to:
- Discuss our options with Observability.
- Implement a TLS and HTTP health monitoring solution based on their recommendations.
† to be determined, the Envoy Telemetry (k8s) dashboard wasn't working for me when I wrote this.