forked from hyperjumptech/monika
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonika.example.yml
146 lines (142 loc) · 4.54 KB
/
monika.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
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
# Monika runs on configurations, therefor it needs a configuration file to run
# For complete documentation on configuration check https://monika.hyperjump.tech/guides/probes
# Monika can run by its minimal configuration such as :
probes:
- id: '1'
requests:
- url: http://github.com
# Configuration example for sending HTML Form Submission
# Using this configuration Monika will send a POST request to http://www.foo.com/login.php
# with the defined headers and request's body.
# probes:
# - id: '1'
# name: HTML form submission
# description: simulate html form submission
# interval: 10
# requests:
# - url: http://www.foo.com/login.php
# method: POST
# timeout: 7000
# headers:
# Content-Type: application/x-www-form-urlencoded
# body:
# username: someusername
# password: somepassword
# Configuration example for sending Multiple requests
# Requests could be define in array to run for multiple requests
# and with this configuration monika will check on github.com first and then https://github.com/hyperjumptech.
# If the status code of github.com is 500, monika will not check https://github.com/hyperjumptech.
# Alerts could also be define in array to check on multiple response conditions
# probes:
# - id: '1'
# name: Probing Github
# description: Multiple
# interval: 10
# requests:
# - url: https://github.com/
# method: GET
# timeout: 7000
# saveBody: false
# - url: https://github.com/hyperjumptech
# method: GET
# timeout: 7000
# saveBody: true
# alerts:
# - query: response.status == 500
# message: response status message
# - query: response.time > 150
# message: response time message
# incidentThreshold: 3
# recoveryThreshold: 3
# Configuration example for enabling notification
# Using this configuration Monika will check the page every 10 seconds
# and will send a notification by email when the page response status returns 500 down 3 times in a row.
# Notifications defined as an array of configuration for sending alerts through the channels defined
# For a complete notification channel please refer to https://monika.hyperjump.tech/guides/notifications
# probes:
# - id: '1'
# name: Example Probe
# description: Probe
# interval: 10
# requests:
# - url: http://example.com
# method: POST
# timeout: 6000
# alerts:
# - query: response.status == 500
# message: response status message
# incidentThreshold: 3
# recoveryThreshold: 3
# notifications:
# - id: unique-id-smtp,
# type: smtp,
# data:
# recipients:
# - RECIPIENT_EMAIL_ADDRESS
# hostname: smtp.gmail.com
# port: 587
# username: YOUR_GMAIL_ACCOUNT
# password: YOUR_GMAIL_PASSWORD_OR_APP_PASSWORD
# Other notifications channel configurations
# - id: random-string-monika-notif
# type: monika-notif
# data:
# url: https://YOUR_MONIKA_NOTIF_URL
# - id: random-string-mailgun
# type: mailgun
# data:
# recipients: [RECIPIENT_EMAIL_ADDRESS]
# apiKey: YOUR_API_KEY
# domain: YOUR_DOMAIN
# - id: random-string-sendgrid
# type: sendgrid
# data:
# recipients: [RECIPIENT_EMAIL_ADDRESS]
# apiKey: YOUR_API_KEY
# - id: random-string-smtp
# type: smtp
# data:
# recipients: [RECIPIENT_EMAIL_ADDRESS]
# hostname: SMTP_HOSTNAME
# port: 587
# username: SMTP_USERNAME
# password: SMTP_PASSWORD
# - id: random-string-webhook
# type: webhook
# data:
# method: POST
# url: https://WEBHOOK_URL
# - id: random-string-slack
# type: slack
# data:
# url: https://YOUR_SLACK_INCOMING_WEBHOOK_URL
# - id: random-string-telegram
# type: telegram
# data:
# group_id: YOUR_GROUP_ID
# bot_token: YOUR_BOT_TOKEN
# - id: random-string-whatsapp
# type: whatsapp
# data:
# recipients: ["1234567890"]
# url: http://example.com
# username: example
# password: password_example
# - id: random-string-teams
# type: teams
# data:
# url: https://YOUR_TEAMS_WEBHOOK_URL
# - id: random-string-discord
# type: discord
# data:
# url: https://YOUR_DISCORD_URL
# - id: random-string-workplace
# type: workplace
# data:
# thread_id: "1234567890"
# access_token: YOUR_CUSTOM_INTEGRATION_ACCESS_TOKEN
# limit log database size in bytes
db_limit:
max_db_size: 1000000000
deleted_data: 1
cron_schedule: '*/1 * * * *'