Werk #18884: agent_kube: Abort querying OpenShift endpoint

Component Checks & agents
Title agent_kube: Abort querying OpenShift endpoint
Date Dec 1, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p18
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

agent_kube uses a Prometheus endpoint to provide monitoring for OpenShift clusters. Previously, the agent would always send all requests to the endpoint, even if all previous requests to the endpoint failed. While this behaviour gives Checkmk the highest chance of collecting information from Prometheus, it can also cause the agent to timeout. This in turn causes the agent to not report monitoring data, which it already collected from the API server.

With this Werk, agent_kube will check the requests made while collecting the usage data on containers. If Prometheus does not respond with a success status to any request, the agent skips collecting information about the nodes. The debugging information about the specific errors will still be reported.

To the list of all Werks