six-group / haproxy-operator

HAProxy Operator is a Kubernetes-native solution designed to automate the deployment, configuration, and management of HAProxy instances using Custom Resources to abstract the key components such as backends, frontends, and listens.
Apache License 2.0
15 stars 2 forks source link

Question: how to access statspage #45

Closed mike-code closed 3 months ago

mike-code commented 3 months ago

Hi! Thanks so much for making this open source!

Is there a way to configure stats page to be exposed through a tcp port? If not, how do you handle stats in your setup? Do you somehow expose the unix socket outside the pod?

This question extends to exposing prometheus metrics (ie. http-request use-service prometheus-exporter in the frontend block)

mike-code commented 3 months ago

I've figured from the code that I need to add the metrics block. I've just had an issue that I named my custom frontend block "metrics" which prevented the operator to create another frontend with the same name