summaryrefslogtreecommitdiff
path: root/src/pmie/examples/upm.10
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
commit47e6e7c84f008a53061e661f31ae96629bc694ef (patch)
tree648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /src/pmie/examples/upm.10
downloadpcp-debian.tar.gz
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'src/pmie/examples/upm.10')
-rw-r--r--src/pmie/examples/upm.1011
1 files changed, 11 insertions, 0 deletions
diff --git a/src/pmie/examples/upm.10 b/src/pmie/examples/upm.10
new file mode 100644
index 0000000..ce40c1a
--- /dev/null
+++ b/src/pmie/examples/upm.10
@@ -0,0 +1,11 @@
+delta = 1 minute;
+ruleset
+ kernel.all.load #'1 minute' > 10 * hinv.ncpu ->
+ print "extreme load average %v"
+else kernel.all.load #'1 minute' > 2 * hinv.ncpu ->
+ print "moderate load average %v"
+unknown ->
+ print "load average unavailable"
+otherwise ->
+ print "load average OK"
+;