Skip to content

Commit

Permalink
fixed prometheus metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Nov 25, 2024
1 parent 1b9b276 commit 7394588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvmd/apps/kvmd/api/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async def __get_prometheus_metrics(self) -> str:
self.__append_prometheus_rows(rows, atx_state["leds"]["power"], "pikvm_atx_power") # type: ignore

for mode in sorted(UserGpioModes.ALL):
for (channel, ch_state) in gpio_state[f"{mode}s"].items(): # type: ignore
for (channel, ch_state) in gpio_state["state"][f"{mode}s"].items(): # type: ignore
if not channel.startswith("__"): # Hide special GPIOs
for key in ["online", "state"]:
self.__append_prometheus_rows(rows, ch_state["state"], f"pikvm_gpio_{mode}_{key}_{channel}")
Expand Down

0 comments on commit 7394588

Please sign in to comment.