diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
commit | 47e6e7c84f008a53061e661f31ae96629bc694ef (patch) | |
tree | 648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /src/pmie/examples/disk.10 | |
download | pcp-debian/3.9.10.tar.gz |
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'src/pmie/examples/disk.10')
-rw-r--r-- | src/pmie/examples/disk.10 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/pmie/examples/disk.10 b/src/pmie/examples/disk.10 new file mode 100644 index 0000000..9cbf50d --- /dev/null +++ b/src/pmie/examples/disk.10 @@ -0,0 +1,23 @@ +// +// A subset of the disks on a particular host are either busy +// (more than 30 I/Os per second averaged over these disks) or one +// disk is busy (more than 50 I/Os per second) with write-dominated +// (more than 75%) activity + +delta = 10 sec; + +myhost = "moomba"; // the host of interest +mydisks = "#dks1d1 #dks1d2 #dks3d2"; // the disks of interest on this host + +metric = "disk.dev"; + +disk_group_busy = + ( + avg_inst ( $metric.total :$myhost $mydisks ) > 10 count/sec || + some_inst ( + $metric.total :$myhost $mydisks > 50 count/sec && + $metric.write :$myhost $mydisks > + 3 * $metric.write :$myhost $mydisks + ) + ) + -> alarm "Busy disks: $mydisks on host: $myhost)"; |