Catch up on the latest product updates, best practices, and expert insights from the Checkmk Conference #12 – Watch the livestream recordings now

Werk #22797: Unit lookup: handle missing metric

Component User interface
Title Unit lookup: handle missing metric
Date Oct 19, 2026
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
3.0.0b1
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.5.0p18
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.4.0p39 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

When the unit of a selected metric was looked up for a form that lets you choose a metric (for example in graph or dashboard settings), a request without a metric produced a crash report with KeyError: 'metric'.

Such a request is now handled like an empty metric selection, and the default unit is preselected.

To the list of all Werks