mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 17:48:10 -03:30
Add some munin tower monitoring tasks
This commit is contained in:
27
tools/scripts/tower_jobs
Normal file
27
tools/scripts/tower_jobs
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $1 in
|
||||
config)
|
||||
cat <<'EOM'
|
||||
multigraph jobs
|
||||
graph_title Running Jobs breakdown
|
||||
graph_vlabel job count
|
||||
graph_category tower
|
||||
running.label Running jobs
|
||||
running.type DERIVE
|
||||
waiting.label Waiting jobs
|
||||
waiting.type DERIVE
|
||||
pending.label Pending jobs
|
||||
pending.type DERIVE
|
||||
EOM
|
||||
exit 0;;
|
||||
esac
|
||||
|
||||
printf "running.value "
|
||||
awx-manage stats --stat jobs_running
|
||||
|
||||
printf "waiting.value "
|
||||
awx-manage stats --stat jobs_waiting
|
||||
|
||||
printf "pending.value "
|
||||
awx-manage stats --stat jobs_pending
|
||||
Reference in New Issue
Block a user