forked from moira-alert/doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.yml
71 lines (63 loc) · 2.02 KB
/
config.example.yml
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
redis:
host: localhost
port: 6379
dbid: 0 # redis database index http://redis.io/commands/select
# Base log directory for Moira API and Moira Checker microservices
worker:
log_dir: /var/log/moira/worker
log_level: info
api:
port: 8081
listen: '127.0.0.1'
# Moira microservices will send their own metrics to this address
graphite:
uri: graphite-relay:2003
prefix: DevOps.moira
interval: 30
checker:
# every trigger will be periodically checked even if no metrics arrive
nodata_check_interval: 60 # (in seconds)
# every trigger will be checked at most once every interval
check_interval: 5 # (in seconds)
# metrics older than this age will be purged after use
metrics_ttl: 3600 # (in seconds)
# if master is not receiving any metrics it stops nodata checks after that interval
stop_checking_interval: 30 # (in seconds)
# Moira frontend uri, used to make links in notification templates
front:
uri: http://localhost
notifier:
log_file: /var/log/moira/notifier/notifier.log
log_level: debug
log_color: true
sender_timeout: 10s0ms
resending_timeout: 24:00 # 24 hours
senders:
- type: mail
smtp_host: smtp.gmail.com
smtp_port: 587
smtp_pass: # no auth if empty
smtp_user: # be used mail_from value if empty
mail_from: [email protected]
insecure_tls: false
- type: slack
api_token: # place your token here
- type: pushover
api_token: # place your token here
- type: script
name: MyCustomScript
exec: /bin/bash /opt/myscripts/gsm-modem.sh
- type: twilio sms
api_asid: # place your api sid
api_authtoken: # place your api secret
api_fromphone: # place phone
- type: twilio voice
api_asid: # place your api sid
api_authtoken: # place your api secret
api_fromphone: # place phone
voiceurl: # place your voice url
cache:
log_file: /var/log/moira/cache/cache.log
listen: ':2003' # listen on all interfaces
retention-config: /etc/moira/cache/storage-schemas.conf
pid: /var/run/moira-cache.pid