helm-charts
helm-charts copied to clipboard
Prometheus Scraping Issues
Hi
Using the helm chart here, when defining the servicemonitor as enabled the prometheus port is not defined, ie container ports should look like
containerPorts:
http: 80
https: 443
stat: 1024
prometheus: 1024
with a matching config section that looks like
frontend stats
bind :1024
http-request use-service prometheus-exporter if { path /metrics }
stats enable
stats uri /stats
stats refresh 10s
no log
The other option would be to set https://github.com/haproxytech/helm-charts/blob/main/haproxy/values.yaml#L492 to stat , but that seems a bit iffy
Thoughts
Thanks