sassoftware / viya4-monitoring-kubernetes

Provides simple scripts and customization options to deploy monitoring, alerts, and log aggregation for Viya 4 running on Kubernetes
Apache License 2.0
50 stars 31 forks source link

Metrics not collected for Config-Reloader sidecars to Alertmanager and Prometheus #623

Open gsmith-sas opened 3 months ago

gsmith-sas commented 3 months ago

After enabling TLS by default as part of our 1.2.15 (18JUL23) release, metrics are no longer being collected from the config-reloader sidecar containers associated with the Alertmanager and Prometheus pods deployed as part of the metric monitoring components of this project. A recently released update to the kube-prometheus-stack Helm chart will allow us to address this issue in a coming update. This is a minor issue and most users will not be aware of it unless they review the Targets screen in the Prometheus web app. These two targets will be reported as "unhealthy" on that screen.

The following instructions describe how to manually patch the service monitor definitions to allow Prometheus to collect metrics from these two components.

- path: /metrics
  port: reloader-web
  scheme: https
  tlsConfig:
    insecureSkipVerify: true

NOTE: These steps were validated with test clusters running the Kube-Prometheus Stack version 56.6.2 which is the version deployed as part of our most recent version 1.2.23 released on 19MAR24.