|
@@ -0,0 +1,16 @@
|
|
|
+# you can disable an alarm notification by setting the 'to' line to: silent
|
|
|
+
|
|
|
+ template: total_connection_utilization
|
|
|
+ on: postgres.connections_utilization
|
|
|
+ class: Utilization
|
|
|
+ type: Database
|
|
|
+component: PostgreSQL
|
|
|
+ hosts: *
|
|
|
+ lookup: average -1m unaligned of used
|
|
|
+ units: %
|
|
|
+ every: 1m
|
|
|
+ warn: $this > (($status >= $WARNING) ? (70) : (80))
|
|
|
+ crit: $this > (($status == $CRITICAL) ? (80) : (90))
|
|
|
+ delay: down 15m multiplier 1.5 max 1h
|
|
|
+ info: average total connection utilization over the last minute
|
|
|
+ to: dba
|