Werk #16801: Custom graphs: Fix crash in case of unavailable scalars

Component Metrics system
Title Custom graphs: Fix crash in case of unavailable scalars
Date Apr 23, 2024
Checkmk Edition Checkmk Enterprise (CEE)
Checkmk Version 2.3.0 2.4.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

When adding a scalar to a custom graph, it is possible that no value is available for this scalar. For example, this is the case when adding the CRIT threshold of a metric for which no thresholds are configured. In such cases, no graph was rendered. Instead, the Checkmk UI displayed the message "Cannot calculate graph recipes" and showed a traceback.

This werk restores the correct behavior: No lines are rendered for unavailable scalars and they are denoted with "n/a" in the graph legend.

To the list of all Werks