67 lines
2.6 KiB
INI
67 lines
2.6 KiB
INI
# HAProxy 3.2; only the collector principal can use the OTLP gRPC gateway.
|
|
global
|
|
log stdout format raw local0
|
|
maxconn 512
|
|
hard-stop-after 30s
|
|
tune.ssl.cachesize 0
|
|
ssl-default-bind-options ssl-min-ver TLSv1.2 no-tls-tickets
|
|
|
|
defaults tempo_http_defaults
|
|
mode http
|
|
log global
|
|
log-format "%ST %Tt %b"
|
|
option dontlognull
|
|
option http-server-close
|
|
timeout connect 2s
|
|
timeout client 30s
|
|
timeout server 30s
|
|
timeout http-request 5s
|
|
timeout http-keep-alive 2s
|
|
|
|
frontend tempo_https
|
|
bind :3200 ssl crt /run/identity/current/tls.pem ca-file /run/identity/current/ca.crt crl-file /run/identity/current/ca.crl verify required
|
|
acl grafana ssl_c_s_dn(CN) -m str grafana
|
|
acl prometheus ssl_c_s_dn(CN) -m str prometheus
|
|
acl operator ssl_c_s_dn(CN) -m str operator
|
|
acl read_method method GET
|
|
acl query_path path -m str /api/search /api/search/tags /api/v2/search/tags /api/metrics/query /api/metrics/query_range /api/echo
|
|
acl trace_path path -m reg ^/api/(v2/)?traces/[0-9a-fA-F]{1,32}$
|
|
acl tag_values path -m reg ^/api/(v2/)?search/tag/[A-Za-z0-9_.:-]+/values$
|
|
acl health_path path -m str /metrics /ready
|
|
acl status_path path -m str /status /api/status/buildinfo
|
|
http-request set-header X-Scope-OrgID fake
|
|
http-request allow if grafana read_method query_path
|
|
http-request allow if grafana read_method trace_path
|
|
http-request allow if grafana read_method tag_values
|
|
http-request allow if prometheus read_method health_path
|
|
http-request allow if operator read_method query_path
|
|
http-request allow if operator read_method trace_path
|
|
http-request allow if operator read_method tag_values
|
|
http-request allow if operator read_method health_path
|
|
http-request allow if operator read_method status_path
|
|
# The HTTP listener has no collector write, admin or alternate gRPC route.
|
|
http-request deny deny_status 403
|
|
default_backend tempo_private_http
|
|
|
|
backend tempo_private_http
|
|
server local 127.0.0.1:13200
|
|
|
|
# Separate defaults prevent inheriting HTTP options or HTTP log fields in TCP.
|
|
defaults tempo_grpc_defaults
|
|
mode tcp
|
|
log global
|
|
log-format "%Tt %b"
|
|
option dontlognull
|
|
timeout connect 2s
|
|
timeout client 30s
|
|
timeout server 30s
|
|
|
|
frontend tempo_otlp_tls
|
|
bind :4437 ssl crt /run/identity/current/tls.pem ca-file /run/identity/current/ca.crt crl-file /run/identity/current/ca.crl verify required alpn h2
|
|
acl collector ssl_c_s_dn(CN) -m str collector
|
|
tcp-request content reject unless collector
|
|
default_backend tempo_private_otlp
|
|
|
|
backend tempo_private_otlp
|
|
server local 127.0.0.1:14317
|