Skip to content

Commit

Permalink
check_openrc.pl: add icingaweb2-module-graphite template
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fischl <[email protected]>
  • Loading branch information
antonfischl1980 committed May 11, 2022
1 parent 29fb46b commit 9884ea0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions icingaweb-graphite-template/openrc.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[openrc.ini.graph]
check_command = "openrc"

[openrc.ini.metrics_filters]
started = "$service_name_template$.perfdata.count_started.value"
stopped = "$service_name_template$.perfdata.count_stopped.value"
crashed = "$service_name_template$.perfdata.count_crashed.value"

[openrc.ini.urlparams]
areaAlpha = "0.5"
areaMode = "all"
lineWidth = "2"
min = "0"
title = "OpenRC Service States"
yUnitSystem = "si"

[openrc.ini.functions]
started = "legendValue(alias(color(keepLastValue($metric$), '#76B26D'), 'started'), 'last', 'max', 'avg', 'min', 'si')"
stopped = "legendValue(alias(color(keepLastValue($metric$), '#FFA500'), 'stopped'), 'last', 'max', 'avg', 'min', 'si')"
crashed = "legendValue(alias(color(keepLastValue($metric$), '#ff0000'), 'crashed'), 'last', 'max', 'avg', 'min', 'si')"

0 comments on commit 9884ea0

Please sign in to comment.