70 lines
2.6 KiB
INI
70 lines
2.6 KiB
INI
# HAProxy 3.2; shares only the Collector network namespace.
|
|
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
|
|
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 collector_ingest
|
|
bind :4318 ssl crt /run/identity/current/tls.pem ca-file /run/identity/current/ca.crt crl-file /run/identity/current/ca.crl verify required
|
|
# The authenticated certificate CN, never an HTTP header, is the role.
|
|
acl writer ssl_c_s_dn(CN) -m str api worker relay
|
|
acl write_method method POST
|
|
acl write_path path -m str /v1/traces /v1/metrics /v1/logs
|
|
http-request allow if writer write_method write_path
|
|
http-request deny deny_status 403
|
|
default_backend collector_otlp
|
|
|
|
frontend collector_metrics
|
|
bind :8888 ssl crt /run/identity/current/tls.pem ca-file /run/identity/current/ca.crt crl-file /run/identity/current/ca.crl verify required
|
|
acl reader ssl_c_s_dn(CN) -m str prometheus operator
|
|
acl read_method method GET
|
|
acl metrics_path path -m str /metrics
|
|
http-request allow if reader read_method metrics_path
|
|
http-request deny deny_status 403
|
|
default_backend collector_self_metrics
|
|
|
|
frontend application_metrics
|
|
bind :8889 ssl crt /run/identity/current/tls.pem ca-file /run/identity/current/ca.crt crl-file /run/identity/current/ca.crl verify required
|
|
acl reader ssl_c_s_dn(CN) -m str prometheus operator
|
|
acl read_method method GET
|
|
acl metrics_path path -m str /metrics
|
|
http-request allow if reader read_method metrics_path
|
|
http-request deny deny_status 403
|
|
default_backend collector_application_metrics
|
|
|
|
frontend collector_health
|
|
# 13133 is already the private receiver; the TLS gateway uses 13134.
|
|
bind :13134 ssl crt /run/identity/current/tls.pem ca-file /run/identity/current/ca.crt crl-file /run/identity/current/ca.crl verify required
|
|
acl reader ssl_c_s_dn(CN) -m str prometheus operator
|
|
acl read_method method GET
|
|
acl health_path path -m str /
|
|
http-request allow if reader read_method health_path
|
|
http-request deny deny_status 403
|
|
default_backend collector_private_health
|
|
|
|
backend collector_otlp
|
|
server local 127.0.0.1:14318
|
|
|
|
backend collector_self_metrics
|
|
server local 127.0.0.1:18888
|
|
|
|
backend collector_application_metrics
|
|
server local 127.0.0.1:18889
|
|
|
|
backend collector_private_health
|
|
server local 127.0.0.1:13133
|