-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_sample.toml
34 lines (29 loc) · 1.46 KB
/
config_sample.toml
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
[rabbitmq]
protocol = "http" # default is https
host = "192.168.0.1"
port = "15672"
username = "the_username"
password = "the_password"
vhost = "%2f"
[settings]
# No default value, need to be set
poll_seconds = 30 # How often to check
# Default value: 600s (10min)
msg_expiration_seconds = 600 # when the message expires it can be resent again, making it possible to check more often but not spam Slack with the same messages
[slack]
webhook_url = "https://hooks.slack.com/services/xxx/xxxx"
channel = "the_slack_channel_name"
screen_name = "RabbitMQ"
icon_url = "https://example.com/image.png"
# icon_emoji=":bowtie:" # you can also use icon_emoji if you're not using icon_url, reference icon emojis at http://emoji-cheat-sheet.com
[[triggers]]
# Options: consumers_total, memory_total, messages_total, messages_ready, messages_unacknowledged, messages_redelivered, messages_total_rate, messages_ready_rate, messages_unacknowledged_rate, messages_publish_rate, messages_delivery_rate, messages_redeliver_rate
type = "messages_ready" # what value will be observed to pass the threshold
threshold = 10000
queue = "the_queue_name" # this is optional, if ommitted it will be a rule valid for all queues
# since queue is missing in this trigger, this is a global rule for all queues
[[triggers]]
type = "consumers_total"
threshold = 100
# Default value: above
trigger_when = "below" # optional field, defines when the trigger is activated if the value reached is below or above the threshold