-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.yaml
85 lines (76 loc) · 1.75 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
options:
# Check every X seconds
check_frequency: 60
# Run as a daemon
daemon: false
log: lassie.log
pid: lassie.pid
# Perform a network-sanity check before testing services; this helps to
# reduce the frequency of false-positive alerts that can arise if the
# Lassie machine has a degraded network connection.
#
# If set, Lassie will attempt a TCP connection to the host/port defined
# here, and if it fails, it will not perform any service checks until the
# next cycle.
network_check:
host: www.google.com
port: 80
# Twilio API credentials
twilio:
sid: TWILIO_SID
token: TWILIO_TOKEN
phnum: TWILIO_PHNUM # outgoing phone number
# Slack API token and target channels/users
slack:
token: SLACK_TOKEN
channels:
- 'monitoring'
users:
- 'judd'
# Pushover API credentials
pushover:
token: PUSHOVER_APP_TOKEN
#
# ALERTS LEVELS + CONTACTS
#
alerts:
notify:
admin-email:
type: email
team-chat:
type: slack
channels: ['monitoring']
emerg:
admin-sms:
type: sms
phone: "+18001234567"
admin-slack:
type: slack
users: ['judd']
#
# CHECKS
#
checks:
server1:
type: ping
host: server1.example.com
alerts: [emerg, notify]
server2:
type: ping
host: server2.example.com
alerts: [emerg]
site-web:
type: web
url: http://www.example.com
fragment: "This is an example site"
# This check must fail twice in a row before we consider it down.
failures: 2
alerts: [emerg, notify]
site-api:
type: rest
alerts: [emerg]
url: 'https://api.example.com/test_endpoint'
headers:
accept: application/json
x-api-key: abc123456