Skip to content

Commit 43e1b0f

Browse files
committed
#88 Get HAProxy metrics
1 parent 9ea6127 commit 43e1b0f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

backend/haproxy/config/haproxy.cfg

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ defaults
1515

1616
default-server check inter 10s fall 2 rise 1
1717

18+
frontend prometheus
19+
bind :8405
20+
mode http
21+
http-request use-service prometheus-exporter if { path /metrics }
22+
no log
23+
1824
frontend internal
1925
bind :8445 ssl crt /usr/local/etc/haproxy/itmo-dating-backend.pem
2026
bind :8446 ssl crt /usr/local/etc/haproxy/itmo-dating-backend.pem

backend/prometheus/prometheus.yml

+7
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,10 @@ scrape_configs:
8787
scheme: https
8888
tls_config:
8989
insecure_skip_verify: true
90+
91+
- job_name: haproxy
92+
dns_sd_configs:
93+
- names:
94+
- haproxy.dating.se.ifmo.ru
95+
type: 'A'
96+
port: 8405

0 commit comments

Comments
 (0)