Werk #14561: Prometheus: allow operation of special agent without querying targets endpoint

Komponente Checks & agents
Titel Prometheus: allow operation of special agent without querying targets endpoint
Datum 03.10.2022
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p15 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p30 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Previously, the Prometheus special agent would query the endpoint /api/v1/targets regardless of what was configured in the Prometheus rule. This was an additional burden on users, which did not specify any scrape targets and therefore do not need this endpoint. E.g., it can lead to additional timeouts. With this werk, the endpoint /api/v1/targets is only queried if necessary.

Zur Liste aller Werks