[Bug] Stacked perfometers are drawn swapped

CheckMK version: 2.3.0p23
OS version: Ubuntu 24.04 LTS

Error description: Using the CheckMK 2.3 Plugin API, a stacked perfometer can be defined according to cmk.graphing.v1.perfometers as follows (example):

perfometer_adva_4000_pme = Stacked(
    name = "adva_4000_pme",
    lower = Perfometer(
        name = "adva_4000_pme_lower",
        focus_range = FocusRange(Closed(0), Open(20)),
        segments = ["hnPmeDnSnrMargin"],
    ),
    upper = Perfometer(
        name = "adva_4000_pme_upper",
        focus_range = FocusRange(Closed(0), Open(20)),
        segments = ["hnPmeUpSnrMargin"],
    ),
)

According to the API documentation, the perfometer defined as “lower” should be drawn at the bottom, and the perfometer defined as “upper” should be drawn at the top.

However, the perfometer defined as “lower” is drawn at the TOP, and the perfometer defined as “upper” is drawn at the BOTTOM. See the screenshot below, corresponding to the code above:

The downstream S/N margin (“hnPmeDnSnrMargin”) specified for the “lower” perfometer has value 20 and is drawn at the top. The upstream S/N margin, specified for the “upper” perfometer has value 13 and is drawn at the bottom.

This seems to be a bug, because the lower and upper perfometers are drawn swapped.

Hi Johan,

thanks for the bug report. This will be fixed with werk 17650.

Best regards
Simon

2 Likes