-
Notifications
You must be signed in to change notification settings - Fork 121
/
Copy pathconfig-example.yaml
172 lines (164 loc) · 5.14 KB
/
config-example.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# Please copy this example config to config.yaml
# and adjust it to your needs.
# Most config values have sane defaults! This example is more verbose than it needs to be,
# your config only needs to override what you want to change.
# This is useful to differentiate multiple chiadog
# instances monitoring multiple harvesters
notification_title_prefix: 'Chia'
log_level: INFO
# Only one consumer can be enabled at a time, you can
# delete the section for the consumer which you aren't using
# For Windows file path needs to be absolute.
chia_logs:
file_log_consumer:
enable: true
file_path: '~/.chia/mainnet/log/debug.log'
network_log_consumer:
enable: false
remote_file_path: '~/.chia/mainnet/log/debug.log'
remote_host: "192.168.0.100"
remote_user: "chia"
remote_port: 22
# Enable this and chiadog will ping a remote server every 5 minutes
# That way you can know that the monitoring is running as expected
keep_alive_monitor:
enable_remote_ping: false
ping_url: ''
# These thresholds determine how long a service can be unhealthy,
# before we trigger a high priority alert.
# The lowest value here determines how often the keep-alive checks run,
# and thus how often a notification for an unhealthy service will trigger!
notify_threshold_seconds:
FULL_NODE: 300
HARVESTER: 300
FARMER: 300
WALLET: 300
# Enable this and you'll receive a daily summary notification
# on your farm performance at the specified time of the day.
daily_stats:
enable: true # default: false
time_of_day: "21:00"
frequency_hours: 24
# Remove any service your node isn't running. All are enabled by default.
# Services listed here are checked for health and will start alerting if missing.
monitored_services:
- FULL_NODE
- HARVESTER
- FARMER
- WALLET
# In this section you can configure log handler details
handlers:
wallet_added_coin_handler:
# Transactions with lower amount mojos will be ignored
# Use this to avoid notification spam during dust storms
min_mojos_amount: 5 # default: 0
wallet_peak_handler:
# Observed wallet delay is usually about a minute on a beefy node but
# you may need to experiment to find what's normal for you.
# If the delay is consistently over this for the WALLET notify_threshold_seconds value, the keep-alive triggers.
max_drift_seconds: 300
# We support a lot of notifiers, please check the README for more
# information. You can delete the sections which you aren't using.
# You can also enable more than one notifier and send different
# notifications to each of them. E.g. enable daily_stats only to E-mail.
# If you enable wallet_events you'll get notifications anytime your
# wallet receives some XCH (e.g. farming reward).
#
# NOTE: No notifier is enabled by default, and all notification topics are disabled by default.
# You'll need to enable the notifiers and topics that you want to see!
notifier:
pushover:
enable: false
daily_stats: true
wallet_events: true
decreasing_plot_events: true
increasing_plot_events: false
credentials:
api_token: 'dummy_token'
user_key: 'dummy_key'
pushcut:
enable: false
daily_stats: true
wallet_events: true
decreasing_plot_events: true
increasing_plot_events: false
credentials:
api_token: 'dummy_token'
user_key: 'dummy_key'
telegram:
enable: false
daily_stats: true
wallet_events: true
decreasing_plot_events: true
increasing_plot_events: false
credentials:
bot_token: 'dummy_bot_token'
chat_id: 'dummy_chat_id'
smtp:
enable: false
daily_stats: true
wallet_events: true
decreasing_plot_events: true
increasing_plot_events: false
credentials:
sender: 'chia@example.com'
sender_name: 'chiadog'
recipient: 'you@example.com'
username_smtp: 'username'
password_smtp: 'password'
enable_smtp_auth: true
host: 'smtp.example.com'
port: 587
script:
enable: false
daily_stats: true
wallet_events: true
decreasing_plot_events: true
increasing_plot_events: false
script_path: 'tests/test_script.sh'
discord:
enable: false
daily_stats: true
wallet_events: true
decreasing_plot_events: true
increasing_plot_events: false
credentials:
webhook_url: 'https://discord.com/api/webhooks/...'
slack:
enable: false
daily_stats: true
wallet_events: true
decreasing_plot_events: true
increasing_plot_events: false
credentials:
webhook_url: 'https://hooks.slack.com/services/...'
mqtt:
enable: false
daily_stats: true
wallet_events: true
decreasing_plot_events: true
increasing_plot_events: false
topic: chia/chiadog/alert
qos: 1 # default: 0
retain: false
credentials:
host: '192.168.0.10'
port: 8883
username: ''
password: ''
grafana:
enable: false
credentials:
base_url: ''
api_token: ''
dashboard_id: -1
panel_id: -1
ifttt:
enable: false
daily_stats: false
wallet_events: false
decreasing_plot_events: true
increasing_plot_events: false
credentials:
api_token: 'dummy_token'
webhook_name: 'dummy_key'