mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 21:21:21 -03:30
fix job status metric
This commit is contained in:
parent
c3812de3d6
commit
3fb3079264
@ -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)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user