added postgres alarm
Costa Tsaousis (ktsaou) committed
Oct 28, 2016 at 21:37 UTC
d5e0512beb009197b15ef4e5e3b6ef4530e13644
1 file changed
+13
conf.d/health.d/postgres.conf
new
+13
@@ -0,0 +1,13 @@
1
+
2
+# make sure mysql is running
3
+
4
+template: postgres_last_collected_secs
5
+ on: postgres.db_stat_transactions
6
+ calc: $now - $last_collected_t
7
+ units: seconds ago
8
+ every: 10s
9
+ warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
10
+ crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
11
+ delay: down 5m multiplier 1.5 max 1h
12
+ info: number of seconds since the last successful data collection
13
+ to: dba