mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +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"
|