-
Notifications
You must be signed in to change notification settings - Fork 395
Expand file tree
/
Copy pathhaproxy.txt
More file actions
52 lines (44 loc) · 2.12 KB
/
haproxy.txt
File metadata and controls
52 lines (44 loc) · 2.12 KB
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
# For Datadog EU, change `datadoghq.com` to `datadoghq.eu`
frontend metrics-forwarder
bind *:3834
mode http
option tcplog
default_backend datadog-metrics
use_backend datadog-api if { path_beg -i /api/v1/validate }
frontend traces-forwarder
bind *:3835
mode tcp
option tcplog
default_backend datadog-traces
frontend logs-forwarder
bind *:3837
mode http
option tcplog
default_backend datadog-logs
backend datadog-metrics
balance roundrobin
mode http
# The following configuration is for HAProxy 1.8 and newer
server-template mothership 5 haproxy-app.agent.datadoghq.com:443 check port 443 ssl verify none check resolvers my-dns init-addr none resolve-prefer ipv4
# Uncomment the following configuration for older HAProxy versions
# server mothership haproxy-app.agent.datadoghq.com:443 check port 443 ssl verify none
backend datadog-api
mode http
# The following configuration is for HAProxy 1.8 and newer
server-template mothership 5 api.datadoghq.com:443 check port 443 ssl verify none check resolvers my-dns init-addr none resolve-prefer ipv4
# Uncomment the following configuration for older HAProxy versions
# server mothership api.datadoghq.com:443 check port 443 ssl verify none
backend datadog-traces
balance roundrobin
mode tcp
# The following configuration is for HAProxy 1.8 and newer
server-template mothership 5 trace.agent.datadoghq.com:443 check port 443 ssl verify none check resolvers my-dns init-addr none resolve-prefer ipv4
# Uncomment the following configuration for older HAProxy versions
# server mothership trace.agent.datadoghq.com:443 check port 443 ssl verify none
backend datadog-logs
balance roundrobin
mode http
# The following configuration is for HAProxy 1.8 and newer
server-template mothership 5 lambda-http-intake.logs.datadoghq.com:443 check port 443 ssl verify none check resolvers my-dns init-addr none resolve-prefer ipv4
# Uncomment the following configuration for older HAProxy versions
# server datadog lambda-http-intake.logs.datadoghq.com:443 check port 443 ssl verify none