mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-25 14:50:24 +00:00
fix: /prometheus/metrics/ api 500
This commit is contained in:
@@ -140,7 +140,7 @@ class ComponentsPrometheusMetricsUtil(TypedComponentsStatusMetricsUtil):
|
||||
for component in self.components:
|
||||
if not component.is_alive:
|
||||
continue
|
||||
component_stat = component.latest_stat
|
||||
component_stat = component.last_stat
|
||||
if not component_stat:
|
||||
continue
|
||||
metric_text = state_metric_text % (
|
||||
|
Reference in New Issue
Block a user