Merge "prod-playbook: use job name for stats"
This commit is contained in:
commit
4c34ff6bb1
@ -32,8 +32,8 @@
|
||||
# delta is in string format h:m:s.sss; convert to ms for statsd
|
||||
{% set delta = _run.delta.split(':') %}
|
||||
{% set delta_ms = ((delta[0]|int * 60 * 60 * 1000) + (delta[1]|int * 60 * 1000) + (delta[2]|float * 1000)) | int %}
|
||||
echo 'bridge.ansible.{{ playbook_name }}.runtime:{{ delta_ms }}|ms' | nc -w 1 -u graphite.opendev.org 8125
|
||||
echo 'bridge.ansible.{{ playbook_name }}.rc:{{ _run.rc }}|g' | nc -w 1 -u graphite.opendev.org 8125
|
||||
echo 'bridge.ansible.{{ zuul.job }}.runtime:{{ delta_ms }}|ms' | nc -w 1 -u graphite.opendev.org 8125
|
||||
echo 'bridge.ansible.{{ zuul.job }}.rc:{{ _run.rc }}|g' | nc -w 1 -u graphite.opendev.org 8125
|
||||
args:
|
||||
executable: '/bin/bash'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user