-
Notifications
You must be signed in to change notification settings - Fork 491
/
Copy pathbosun.example.toml
137 lines (102 loc) · 4.35 KB
/
bosun.example.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
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
# Note: This file is tested as part of Bosun's tests. Editing outside of comments
# may cause tests to fail
# Scheme will be used with Hostname when links are created in templates (i.e. acknowledge links)
Scheme = "https"
# Hostname will be used when links are created in templates (i.e. acknowledge links)
Hostname = "bosun.example.com"
# The HTTP IP and Port to Listen on. Default is ":8070"
HTTPListen = ":8080"
# Alert checks are run by default every CheckFrequency * DefaultRunEvery. RunEvery can be overridden
# by indivdual alerts. Defaults are "5m" and 1
CheckFrequency = "1m"
DefaultRunEvery = 5
# Path to the rule file (file that contains definitions for alerts, macros, lookups, templates, and notifications)
RuleFilePath = "dev.sample.conf"
# timeanddate.com zones (only for use in the UI)
TimeAndDate = [ 202, 75, 179, 136 ]
# An API key for generating goo.gl shortlinks
ShortURLKey = "aKey"
# The minumum amount of alerts to create an alert group on the dashboard. Default is 5
MinGroupSize = 5
# How many unknown alerts in a check cycle are needed before a group notiofication is created
UnknownThreshold = 5
# This makes it so Bosun ping's and records a metric for every value of the "host" tag it has seen. Default is false
Ping = true
# How long before hosts stop being pinged if we haven't seen a tagset for that host.Alert. Default is 24 hours
PingDuration = "24h"
# How long certain items and metrics should be displayed in the UI if we haven't seen them. Default 3 days
SearchSince = "72h"
# Enable saving API endpoints and the ability to save the config via the UI. Default is false
# EnableSave = true
# Path to a command that will be executed on save of the rule configuration. This command is passed a filename, username, message, and vargs
# If the command does not execute save operations will be canceled and the rule file will be restored
CommandHookPath = "/Users/kbrandt/src/hook/hook"
#Example expression under "Expression" tab
ExampleExpression = 'avg(q("avg:rate:os.cpu{host=*bosun*}", "5m", "")) > 80'
# Configuration to enable the OpenTSDB Backend
[OpenTSDBConf]
Host = "ny-tsdb01:4242"
# Default is 2.1, certain features like filters are enabled when the version is set to 2.2
Version = 2.2
# ResponseLimit will make requests error if the response from opentsdb is larger than this setting in bytes. Default of 1MB
ResponseLimit = 25000000
# Configuration for to enable to Graphite Backend
[GraphiteConf]
Host = "localhost:80"
[GraphiteConf.Headers]
X-Meow = "Mix"
# Configuration of hosts to enable the Elastic backend
[ElasticConf]
[ElasticConf.default]
Hosts = ["http://ny-lselastic01.example.com:9200", "http://ny-lselastic02.example.com:9200"]
SimpleClient = false
[ElasticConf.default.ClientOptions]
Enabled = false
BasicAuthUsername = ""
BasicAuthPassword = ""
Scheme = ""
SnifferEnabled = false
SnifferTimeoutStartup = 0
HealthcheckEnabled = false
# Configuration for embedding the annotate service (also enables annotations if hosts are defined)
[AnnotateConf]
Hosts = ["http://ny-lselastic01.example.com:9200", "http://ny-lselastic02.example.com:9200"]
# Set SimpleClient to true if ES running in standalone mode or in a restricted environment
# SimpleClient = true
# Set the Index name that annotations are stored in. Default is annotate
# Index = annotate
# [AnnotateConf.ClientOptions]
# Enabled = true
# BasicAuthUsername = "admin"
# BasicAuthPassword = "password"
# Default http only support https
# Scheme = "https"
# Default enable
# SnifferEnabled = false
# Default enable
# HealthcheckEnabled = false
# Configuration for Bosun's internal storage. Can be Ledis (Default) or Redis. Redis is recommended
# for production setups. Defaults for ledis are below but would be ignored since redis takes
# precedence
[DBConf]
RedisHost = "localhost:6389"
LedisDir = "ledis_data"
LedisBindAddr = "127.0.0.1:9565"
# Configuration to enable Bosun to be able to send email notifications
[SMTPConf]
EmailFrom = "bosun@example.com"
Host = "mail.example.com"
# Configuration to enable the InfluxDB backend
[InfluxConf]
URL = "https://myInfluxServer:1234"
Timeout = "5m"
UnsafeSSL = true
# Configuration to enable the CloudWatch backend
[CloudWatchConf]
Enabled = true
PagesLimit = 10
ExpansionLimit = 500
Concurrency = 2
[PromConf]
[PromConf.default]
URL = "http://127.0.0.1:9090"