mesosphere / marathon-lb

Marathon-lb is a service discovery & load balancing tool for DC/OS
Apache License 2.0
449 stars 301 forks source link

Add prometheus-exporter to HAProxy #659

Closed rfvbkm closed 4 years ago

rfvbkm commented 4 years ago

As of 2.0.0, HAProxy includes a Prometheus exporter module that can be built into a binary during build time.

To build with the official Prometheus exporter module, make should be run with the following EXTRA_OBJS flag: make TARGET=linux-glibc EXTRA_OBJS="contrib/prometheus-exporter/service-prometheus.o" Once built, prometheus-exporter can be enabled in haproxy.cfg:

listen stats
  bind 0.0.0.0:9090
  balance
  mode http
  stats enable
  http-request use-service prometheus-exporter if { path /metrics }

For more infromation, see this official blog post

mesosphere-ci commented 4 years ago

Can one of the admins verify this patch?

mesosphere-ci commented 4 years ago

Can one of the admins verify this patch?

mesosphere-ci commented 4 years ago

Can one of the admins verify this patch?

mesosphere-ci commented 4 years ago

Can one of the admins verify this patch?

jkoelker commented 4 years ago

ok to test

harryge00 commented 3 years ago

Will this be released in v1.14.3?