Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Add prometheus-exporter to HAProxy #659

Merged
merged 2 commits into from
Mar 24, 2020

Conversation

rfvbkm
Copy link
Contributor

@rfvbkm rfvbkm commented Nov 28, 2019

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
Copy link

Can one of the admins verify this patch?

3 similar comments
@mesosphere-ci
Copy link

Can one of the admins verify this patch?

@mesosphere-ci
Copy link

Can one of the admins verify this patch?

@mesosphere-ci
Copy link

Can one of the admins verify this patch?

@jkoelker
Copy link
Contributor

ok to test

Copy link
Contributor

@jkoelker jkoelker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\o/ Thanks for the addition. Sorry for the delay in getting this merged.

@jkoelker jkoelker merged commit fd1c710 into d2iq-archive:master Mar 24, 2020
@rfvbkm rfvbkm deleted the prom-exporter branch March 25, 2020 08:07
@harryge00
Copy link

Will this be released in v1.14.3?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants