mirror of
https://github.com/ansible/awx.git
synced 2024-10-30 13:55:31 +03:00
28 lines
483 B
Bash
Executable File
28 lines
483 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case $1 in
|
|
config)
|
|
cat <<'EOM'
|
|
multigraph tower_jobs
|
|
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"
|
|
|
|
printf "waiting.value "
|
|
awx-manage stats --stat jobs_waiting
|
|
printf "\n"
|
|
|
|
printf "pending.value "
|
|
awx-manage stats --stat jobs_pending
|
|
printf "\n"
|