Created
June 23, 2011 20:49
-
-
Save kwilczynski/1043594 to your computer and use it in GitHub Desktop.
uptime.source
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
source "uptime" do | |
label "Uptime" | |
info "Uptime in days" | |
type "GAUGE" | |
draw "AREA" | |
min "0" | |
mbean "java.lang:type=Runtime", "Uptime" | |
uptime = (data['value'].to_f / 1000) / 86400 | |
value "%.2f" % uptime | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment