mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 10:41:05 -03:30
fix job status metric
This commit is contained in:
@@ -117,7 +117,7 @@ def metrics():
|
||||
for launch_type, value in types.items():
|
||||
INSTANCE_LAUNCH_TYPE.labels(node=node, launch_type=launch_type).set(value)
|
||||
statuses = instance_data[node].get('status', {})
|
||||
for status, value in types.items():
|
||||
for status, value in statuses.items():
|
||||
INSTANCE_STATUS.labels(node=node, status=status).set(value)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user