Created
June 30, 2011 10:36
-
-
Save kwilczynski/1055987 to your computer and use it in GitHub Desktop.
Example of graph using Munin DSL ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Graph definition file: | |
graph "Uptime" do | |
title "Uptime - #{instance.title}" | |
vlabel "Days" | |
category "Tomcat" | |
args "--base 1000 --lower-limit 0 --slope-mode" | |
scale "no" | |
source "uptime" | |
source["uptime"]["draw"] = "AREA" | |
end | |
Source definition file: | |
source "uptime" do | |
label "Uptime" | |
type "GAUGE" | |
draw "LINE1" | |
min "0" | |
mbean "java.lang:type=Runtime", "Uptime" | |
uptime = (data["value"].to_f / 1000) / 86400 | |
value "%.2f" % uptime | |
end | |
Configuration: | |
graph_args --base 1000 --lower-limit 0 --slope-mode | |
graph_category Tomcat | |
graph_scale no | |
graph_title Uptime - Bushfire Backend 1 | |
graph_vlabel Days | |
bushfire_backend_1_uptime.draw AREA | |
bushfire_backend_1_uptime.label Uptime | |
bushfire_backend_1_uptime.min 0 | |
bushfire_backend_1_uptime.type GAUGE | |
Result: | |
bushfire_backend_1_uptime.value 10.13 | |
File: | |
tomcat_bushfire_backend_1-uptime: symbolic link to `/usr/share/munin/plugins/tomcat_' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment