Skip to content

Commit

Permalink
Merge pull request #5350 from kalikiana/munin_plug_title
Browse files Browse the repository at this point in the history
munin: Include context in minion plugin title
  • Loading branch information
mergify[bot] authored Nov 2, 2023
2 parents fddcdef + c2c6aa4 commit 1bd59f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions contrib/munin/config/minion.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Put this into /etc/munin/plugin-conf.d/munin-node/openqa-minion
[openqa_minion_*]
#env.url https://openqa.opensuse.org/admin/influxdb/minion
#env.webui https://openqa.opensuse.org
#env.minion_jobs_failed_warning 400
#env.minion_jobs_failed_critical 500
#env.minion_jobs_hook_rc_failed_warning 5
Expand Down
7 changes: 4 additions & 3 deletions contrib/munin/plugins/minion
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use v5.22;
#
# [openqa_minion_*]
# env.url https://openqa.opensuse.org/admin/influxdb/minion
# env.webui https://openqa.opensuse.org
# # optional
# env.minion_jobs_failed_warning 400
# env.minion_jobs_failed_critical 500
Expand All @@ -25,17 +26,17 @@ use v5.22;
my %config = (
minion_jobs => {
states => [qw/ active delayed failed inactive /],
title => "Minion Jobs",
title => "Minion Jobs - see " . ($ENV{webui} // "https://openqa.opensuse.org") . "/minion/jobs?state=failed",
warning => { failed => $ENV{minion_jobs_failed_warning} // 400 },
critical => { failed => $ENV{minion_jobs_failed_critical} // 500 },
},
minion_workers => {
states => [qw/ active inactive registered /],
title => "Minion Workers",
title => "Minion Workers - see " . ($ENV{webui} // "https://openqa.opensuse.org") . "/minion/workers",
},
minion_jobs_hook_rc_failed => {
states => [qw/ rc_failed_per_5min /],
title => "hook failed",
title => "hook failed - see openqa-gru service logs for details",
warning => { rc_failed_per_5min => $ENV{minion_jobs_hook_rc_failed_warning} // 0.5 },
critical => { rc_failed_per_5min => $ENV{minion_jobs_hook_rc_failed_critical} // 2 },
},
Expand Down
2 changes: 1 addition & 1 deletion t/46-munin.t
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ EOM
main::main();
};
my $exp_minion_jobs_hook_rc_failed_config = <<'EOM';
graph_title hook failed
graph_title hook failed - see openqa-gru service logs for details
graph_args --base 1000 -l 0
graph_category minion
graph_order rc_failed_per_5min
Expand Down

0 comments on commit 1bd59f9

Please sign in to comment.