summaryrefslogtreecommitdiff
path: root/src/pmie/examples/disk.10
diff options
context:
space:
mode:
Diffstat (limited to 'src/pmie/examples/disk.10')
-rw-r--r--src/pmie/examples/disk.1023
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)";