1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00
awx/tools/munin_monitors/tower_jobs

28 lines
483 B
Plaintext
Raw Normal View History

2014-07-29 19:44:36 +04:00
#!/bin/sh
case $1 in
config)
cat <<'EOM'
multigraph tower_jobs
2014-07-29 19:44:36 +04:00
graph_title Running Jobs breakdown
graph_vlabel job count
graph_category tower
running.label Running jobs
waiting.label Waiting jobs
pending.label Pending jobs
EOM
exit 0;;
esac
printf "running.value "
awx-manage stats --stat jobs_running
printf "\n"
2014-07-29 19:44:36 +04:00
printf "waiting.value "
awx-manage stats --stat jobs_waiting
printf "\n"
2014-07-29 19:44:36 +04:00
printf "pending.value "
awx-manage stats --stat jobs_pending
printf "\n"