Werk #15641: Prometheus: Properly Encode PromQL Queries

Komponente Checks & agents
Titel Prometheus: Properly Encode PromQL Queries
Datum 10.09.2023
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p10 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The Prometheus agent allows specifying PromQL queries via the option Service creation using PromQL queries. In 2.2.0, any query containing a '+' would not be encoded properly. For example, the query

up{container=".+"}

would result in a HTTP request, which is interpreted by Prometheus as

up{container=". "}

Zur Liste aller Werks