Update AMD GPU plugin to work around item_name bug in CheckMK.

This commit is contained in:
Marsell Kukuljevic 2024-07-25 12:38:09 +02:00
parent 5ba99c1c15
commit 62518edf2c
3 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -8,7 +8,7 @@ from cmk.gui.plugins.wato.utils import (
rulespec_registry,
RulespecGroupCheckParametersHardware,
)
from cmk.gui.valuespec import Dictionary, Percentage, Tuple
from cmk.gui.valuespec import Dictionary, Percentage, TextInput, Tuple
def _parameter_valuespec_amd_gpu():
@ -80,6 +80,7 @@ rulespec_registry.register(
group=RulespecGroupCheckParametersHardware,
match_type="dict",
parameter_valuespec=_parameter_valuespec_amd_gpu,
item_spec=lambda: TextInput(title=_("GPU")),
title=lambda: _("AMD GPU Metrics"),
)
)