forked from sentinl/sentinl
-
Notifications
You must be signed in to change notification settings - Fork 0
KAAE Report Example
Lorenzo Mangani edited this page Sep 12, 2016
·
1 revision
KaaE watchers can generate snapshots of Kibana (or any other website) and deliver them on your schedule using the report action.
So your Boss wants to see some charts each Monday? No problem!
{
"_index": "watcher",
"_type": "watch",
"_id": "reporter_v8g6p5enz",
"_score": 1,
"_source": {
"trigger": {
"schedule": {
"later": "on the first day of the week"
}
},
"report": true,
"actions": {
"report_admin": {
"report": {
"to": "reports@localhost",
"from": "kaae@localhost",
"subject": "KaaE Report",
"priority": "high",
"body": "Sample KaaE Screenshot Report",
"snapshot": {
"res": "1280x900",
"url": "http://www.google.com",
"path": "/tmp/",
"params": {
"delay": 5000
}
}
}
}
}
}
}
Report actions requires:
- KaaE 0.0.8+
- PhantomJS installed on the Kibana host, ie:
npm install phantomjs-prebuilt -g
- A valid email address configured in
/etc/kaae.json
. An example for gmail:
"email" : {
"user": "[email protected]",
"password": "somepass",
"host": "smtp.gmail.com",
"port" : 465,
"ssl": true,
"active": true
}
With a pinch of luck, you will soon receive your first report with a screenshot attached: