Fix incorrect variable set

This commit is contained in:
Joshua Boniface 2024-01-24 14:40:40 -05:00
parent e5e9c7086a
commit d28fb71f57
1 changed files with 1 additions and 1 deletions

View File

@ -1201,7 +1201,7 @@ def get_resource_metrics(zkhandler):
try:
user_time = vm["vcpu_stats"]["user_time"] / 1000000
except Exception:
cpu_time = 0
user_time = 0
output_lines.append(
f"pvc_vm_vcpus_user_time{{vm=\"{vm['name']}\"}} {user_time}"
)