-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbutler.toml.etcdtest
111 lines (91 loc) · 3.95 KB
/
butler.toml.etcdtest
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
#butlerstart
title = "Butler Configuration"
[globals]
## The Config managers are where we define which sections we want to support
## for butler configuration management
config-managers = ["prometheus"]
## Scheduler Interval is how often we try to grab configurations from repo
## Default: "300"
scheduler-interval = "10"
## Do we want to exit from butler if there are butler configuration load issues
## Default: "false"
exit-on-config-failure = "false"
## Path to status file where butler should store some internal status information
## Default: /var/tmp/butler.status
status-file = "/var/tmp/butler.status"
## Whether to enable the http log handler for butler. Some find the apache style logging
## helpful, others don't.
## Default: "true"
enable-http-log = "true"
## Specify that HTTP protocol and Port for the /metrics and /health-check
## to respond on.
##
## http-proto can be either "http" or "https". If you specify "https,"
## then you must also specify the http-tls-cert and http-tls-key options.
##
## http-port can be any port that you want the http server to bind on, but
## quotated.
##
## The default for http-proto is: "http"
## The default for http-port is: "8080"
##
## There is no default for http-tls-cert, or http-tls-key, and it must be
## specified if http-proto is set to "https"
##
http-proto = "https"
http-port = "8443"
http-tls-cert = "/tmp/server.crt"
http-tls-key = "/tmp/server.key"
## This is the definition for the prometheus configuration handler
[prometheus]
repos = ["prom.yml"]
## !!! IMPORTANT !!! Do you want butler to clean up any NON BUTLER MANAGED files under dest-path?
## Butler would prefer to manage all the files under the configuration path. This is so that no
## new files get snuck in, which could affect the monitoring of the system.
## !!! THIS WILL CAUSE UNANTICIPATED DATA LOSS !!!
## Default: false
clean-files = "true"
## These are the mustache substitutions that we'll attempt to make on the merged prometheus.yml
mustache-subs = ["cluster-id=cluster01-dev-or1", "endpoint=external"]
## Should config caching be used
enable-cache = "true"
## Destination path to install cached configuration files to
cache-path = "/opt/cache/prometheus"
## Destination path to install the managed configuration files to
dest-path = "/opt/prometheus"
## Since there is a primary configuration (merged), and additional configurations (unmerged),
## we need a name for the merged configuration file. It will be put under dest-path
primary-config-name = "prometheus.yml"
## These are the definitions for the first repo which is defined for prometheus
[prometheus.prom.yml]
## Method can be http or https. In the future it may support Amazon s3 or Azure blob
method = "etcd"
## Path is the URI / Path to the configuration files on the repo
repo-path = ""
## This is a list of the primary configuration files which get MERGED together
primary-config = ["prometheus.yml", "prometheus-other.yml"]
## This is a list of additional configuration files which will get thrown onto the filesystem.
## If there are duplicates, then the last file will be taken.
additional-config = ["alerts/commonalerts.yml", "butler/butler.yml"]
## These are repo specific http get options
[prometheus.prom.yml.etcd]
endpoints = "http://127.0.0.1:2379"
# If you have self signed certs for etcd, you may need
# to skip ssl verification. Default value is "false".
insecure-skip-verify = "false"
## These are the options for reloading the alertmanager config-handler
[prometheus.reloader]
method = "http"
[prometheus.reloader.http]
host = "localhost"
port = "9090"
uri = "/-/reload"
method = "post"
payload = "{}"
content-type = "application/json"
# retry info and timeouts
retries = "5"
retry-wait-min = "5"
retry-wait-max = "10"
timeout = "10"
#butlerend