forked from rrreeeyyy/exporter_proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.yml
42 lines (35 loc) · 1.33 KB
/
config.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
# listen: Addr and port to listen (required)
# If it has "SERVER_STARTER:" prefix, fd passed by https://github.com/lestrrat/go-server-starter will be used
# e.g.
# 127.0.0.1:8080
# SERVER_STARTER:0.0.0.0:8080
# SERVER_STARTER:/path/to/socket
listen: "0.0.0.0:9099"
# enable TLS (optional)
tls:
certfile: "/path/to/cert.crt"
keyfile: "/path/to/keyfile.key"
# access_log (optional)
access_log:
format: "ltsv"
path: "./access.log" # optional (default: os.Stdout)
fields: ["time", "time_nsec", "status", "size", "reqtime_nsec", "backend", "path", "query", "method"]
# error_log (optional)
error_log:
path: "./error.log" # default: os.Stderr
# exporters: The path of exporter_proxy and the URL of the destination exporter
exporters:
node_exporter:
path: "/node_exporter/metrics"
url: "http://127.0.0.1:9100/metrics"
mysqld_exporter:
path: "/mysqld_exporter/metrics"
url: "http://127.0.0.1:9104/metrics"
self_signed_example:
path: "/badssl/example"
url: "https://self-signed.badssl.com"
insecure_skip_verify: true # Disable validation of the server certificate.
# shutdown_timeout: timeout for shutting down HTTP server (optional)
# On SIGTERM, exporter_proxy will try to shut down the server gracefully.
# If shutdown_timeout is over, the server will be shutted down forcibly.
shutdown_timeout: 10s