Werk #14562: Prometheus: allow specifying a path prefix

Komponente Checks & agents
Titel Prometheus: allow specifying a path prefix
Datum 05.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)

Previously, the Prometheus special agent would use the path prefix as a URL base prefix. For example, specifying the use of the host IP address, e.g. 1.2.3.4, together with a prefix, e.g., my_prefix would result in an API call to

https://my_prefix1.2.3.4/api/v1/status/buildinfo

In particular, this behaviour deviated from the description in the Prometheus rule. With this werk, the path prefix is prepended to the API calls instead, e.g.,

https://1.2.3.4/my_prefix/api/v1/status/buildinfo

Users, which have specified a path prefix, are migrated to the new option Custom URL base prefix, which has the same behaviour as the old path prefix option.

Zur Liste aller Werks