2019-02-04 02:17:56 +00:00
|
|
|
runcharts:
|
2019-02-21 04:53:59 +00:00
|
|
|
- title: SEARCH ENGINE RESPONSE TIME (sec)
|
|
|
|
position:
|
|
|
|
w: 0
|
|
|
|
h: 0
|
|
|
|
size:
|
2019-02-27 04:23:56 +00:00
|
|
|
w: 53
|
2019-03-01 03:44:01 +00:00
|
|
|
h: 16
|
2019-03-03 19:35:29 +00:00
|
|
|
triggers:
|
2019-03-10 04:41:23 +00:00
|
|
|
- title: LATENCY
|
2019-03-11 03:43:47 +00:00
|
|
|
condition: echo "$prev < 0.2 && $cur > 0.2" |bc -l
|
2019-03-10 04:41:23 +00:00
|
|
|
actions:
|
|
|
|
terminal-bell: true
|
|
|
|
sound: true
|
|
|
|
visual: true
|
|
|
|
script: 'say alert: ${label} latency exceeded ${cur} second'
|
2019-03-09 01:00:13 +00:00
|
|
|
scale: 3
|
2019-02-21 04:53:59 +00:00
|
|
|
items:
|
|
|
|
- label: GOOGLE
|
2019-02-26 04:36:23 +00:00
|
|
|
value: curl -o /dev/null -s -w '%{time_total}' https://www.google.com
|
2019-02-21 04:53:59 +00:00
|
|
|
- label: YAHOO
|
2019-02-26 04:36:23 +00:00
|
|
|
value: curl -o /dev/null -s -w '%{time_total}' https://search.yahoo.com
|
2019-02-21 04:53:59 +00:00
|
|
|
- label: BING
|
2019-02-26 04:36:23 +00:00
|
|
|
value: curl -o /dev/null -s -w '%{time_total}' https://www.bing.com
|
2019-03-01 03:44:01 +00:00
|
|
|
- title: MONGO COLLECTIONS COUNT
|
2019-02-21 04:53:59 +00:00
|
|
|
position:
|
2019-02-27 04:23:56 +00:00
|
|
|
w: 53
|
2019-02-21 04:53:59 +00:00
|
|
|
h: 0
|
|
|
|
size:
|
2019-02-27 04:23:56 +00:00
|
|
|
w: 27
|
2019-03-01 03:44:01 +00:00
|
|
|
h: 8
|
2019-02-21 04:53:59 +00:00
|
|
|
legend:
|
|
|
|
enabled: true
|
|
|
|
details: false
|
|
|
|
scale: 0
|
|
|
|
items:
|
|
|
|
- label: ACTIVE
|
2019-02-26 04:36:23 +00:00
|
|
|
value: mongo --quiet --host=localhost blog --eval "db.getCollection('posts').find({status:'ACTIVE'}).itcount()"
|
2019-02-21 04:53:59 +00:00
|
|
|
- label: INACTIVE
|
2019-02-26 04:36:23 +00:00
|
|
|
value: mongo --quiet --host=localhost blog --eval "db.getCollection('posts').find({status:'INACTIVE'}).itcount()"
|
2019-02-19 04:07:32 +00:00
|
|
|
barcharts:
|
2019-02-23 16:27:22 +00:00
|
|
|
- title: EVENTS BY STATUS
|
2019-02-21 04:53:59 +00:00
|
|
|
refresh-rate-ms: 1000
|
|
|
|
position:
|
|
|
|
w: 0
|
2019-02-27 04:23:56 +00:00
|
|
|
h: 17
|
2019-03-01 03:44:01 +00:00
|
|
|
size:
|
|
|
|
w: 53
|
|
|
|
h: 12
|
2019-02-21 04:53:59 +00:00
|
|
|
scale: 0
|
|
|
|
items:
|
2019-02-23 16:27:22 +00:00
|
|
|
- label: NEW
|
2019-02-26 04:36:23 +00:00
|
|
|
value: mongo --quiet --host=localhost blog --eval "db.getCollection('posts').find({status:'ACTIVE'}).itcount()"
|
2019-02-23 16:27:22 +00:00
|
|
|
- label: TRIGGERED
|
2019-02-26 04:36:23 +00:00
|
|
|
value: mongo --quiet --host=localhost blog --eval "db.getCollection('posts').find({status:'INACTIVE'}).itcount()"
|
2019-02-23 16:27:22 +00:00
|
|
|
- label: IN_PROCESS
|
2019-02-26 04:36:23 +00:00
|
|
|
value: echo 0
|
2019-02-23 16:27:22 +00:00
|
|
|
- label: FAILED
|
2019-02-26 04:36:23 +00:00
|
|
|
value: mongo --quiet --host=localhost blog --eval "db.getCollection('posts').find({status:'ACTIVE'}).itcount()"
|
|
|
|
- label: FINISHED
|
|
|
|
value: mongo --quiet --host=localhost blog --eval "db.getCollection('posts').find({status:'INACTIVE'}).itcount()"
|
|
|
|
gauges:
|
2019-02-28 02:10:21 +00:00
|
|
|
- title: YEAR PROGRESS
|
2019-02-26 04:36:23 +00:00
|
|
|
position:
|
2019-03-01 03:44:01 +00:00
|
|
|
w: 53
|
|
|
|
h: 8
|
2019-02-26 04:36:23 +00:00
|
|
|
size:
|
2019-03-01 03:44:01 +00:00
|
|
|
w: 27
|
|
|
|
h: 2
|
2019-02-26 04:36:23 +00:00
|
|
|
values:
|
2019-02-27 04:23:56 +00:00
|
|
|
cur: date +%j
|
2019-02-26 04:36:23 +00:00
|
|
|
max: echo 365
|
|
|
|
min: echo 0
|
2019-02-28 02:10:21 +00:00
|
|
|
- title: DAY PROGRESS
|
|
|
|
position:
|
2019-03-01 03:44:01 +00:00
|
|
|
w: 53
|
|
|
|
h: 10
|
2019-02-28 02:10:21 +00:00
|
|
|
size:
|
2019-03-01 03:44:01 +00:00
|
|
|
w: 27
|
|
|
|
h: 2
|
2019-02-28 02:10:21 +00:00
|
|
|
values:
|
|
|
|
cur: date +%H
|
|
|
|
max: echo 24
|
|
|
|
min: echo 0
|
2019-02-27 04:23:56 +00:00
|
|
|
- title: HOUR PROGRESS
|
|
|
|
position:
|
2019-03-01 03:44:01 +00:00
|
|
|
w: 53
|
|
|
|
h: 12
|
2019-02-27 04:23:56 +00:00
|
|
|
size:
|
2019-03-01 03:44:01 +00:00
|
|
|
w: 27
|
|
|
|
h: 2
|
2019-02-27 04:23:56 +00:00
|
|
|
values:
|
|
|
|
cur: date +%M
|
|
|
|
max: echo 60
|
|
|
|
min: echo 0
|
|
|
|
- title: MINUTE PROGRESS
|
|
|
|
position:
|
2019-03-01 03:44:01 +00:00
|
|
|
w: 53
|
|
|
|
h: 14
|
2019-02-27 04:23:56 +00:00
|
|
|
size:
|
2019-03-01 03:44:01 +00:00
|
|
|
w: 27
|
|
|
|
h: 2
|
2019-03-10 04:41:23 +00:00
|
|
|
triggers:
|
|
|
|
- title: CLOCK BELL EVERY MINUTE
|
|
|
|
condition: '[ $label == "cur" ] && [ $cur -eq 0 ] && echo 1'
|
|
|
|
actions:
|
|
|
|
sound: true
|
|
|
|
script: say -v samantha `date +%I:%M%p`
|
2019-02-27 04:23:56 +00:00
|
|
|
values:
|
|
|
|
cur: date +%S
|
|
|
|
max: echo 60
|
|
|
|
min: echo 0
|
2019-02-17 23:00:00 +00:00
|
|
|
asciiboxes:
|
2019-02-23 16:27:22 +00:00
|
|
|
- title: LOCAL TIME
|
2019-02-21 04:53:59 +00:00
|
|
|
position:
|
2019-02-27 04:23:56 +00:00
|
|
|
w: 53
|
2019-03-01 03:44:01 +00:00
|
|
|
h: 17
|
2019-02-21 04:53:59 +00:00
|
|
|
size:
|
2019-02-27 04:23:56 +00:00
|
|
|
w: 27
|
2019-03-01 03:44:01 +00:00
|
|
|
h: 5
|
2019-02-26 04:36:23 +00:00
|
|
|
value: date +%r
|
2019-02-23 16:27:22 +00:00
|
|
|
- title: UTC TIME
|
2019-02-21 04:53:59 +00:00
|
|
|
position:
|
2019-02-27 04:23:56 +00:00
|
|
|
w: 53
|
2019-03-01 03:44:01 +00:00
|
|
|
h: 22
|
2019-02-21 04:53:59 +00:00
|
|
|
size:
|
2019-02-27 04:23:56 +00:00
|
|
|
w: 27
|
2019-03-01 03:44:01 +00:00
|
|
|
h: 7
|
2019-02-26 04:36:23 +00:00
|
|
|
value: env TZ=UTC date +%r
|
2019-02-21 04:53:59 +00:00
|
|
|
font: 3d
|