This repository has been archived by the owner on Jun 6, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.dist.yml
66 lines (56 loc) · 1.55 KB
/
config.dist.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
# Agent Configs
agent:
hostname: ${SLOTH_AGENT_HOSTNAME:-localhost}
client_key: ${SLOTH_AGENT_CLIENT_KEY:-feF-KciSUzsx3kXipfvrw0qN0ty9fTTS}
checks:
-
type: http
configs:
-
name: url
value: http://localhost
-
name: method
value: get
-
name: timeout
value: 5s
-
name: method
value: get
-
name: headers
value: x-key=value_here
# Worker Configs
worker:
key: value
# API Server Configs
api:
# HTTP port
port: ${SLOTH_API_PORT:-8080}
# TLS configs
tls:
status: ${SLOTH_API_TLS_STATUS:-off}
pemPath: ${SLOTH_API_TLS_PEMPATH:-cert/server.pem}
keyPath: ${SLOTH_API_TLS_KEYPATH:-cert/server.key}
# Runtime, Requests/Response and Sloth Metrics
metrics:
prometheus:
# Route for the metrics endpoint
endpoint: ${SLOTH_API_METRICS_PROM_ENDPOINT:-/metrics}
# Env mode (dev or prod)
mode: ${SLOTH_MODE:-dev}
# Log configs
log:
# Log level, it can be debug, info, warn, error, panic, fatal
level: ${SLOTH_LOG_LEVEL:-warn}
# output can be stdout or abs path to log file /var/logs/sloth.log
output: ${SLOTH_LOG_OUTPUT:-stdout}
# Format can be json
format: ${SLOTH_LOG_FORMAT:-json}
# Drivers
drivers:
rabbitmq:
connection: ~
etcd:
connection: ~