Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prometheus-exporter to HAProxy #659

Merged
merged 2 commits into from Mar 24, 2020
Merged

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
Collaborator

Can one of the admins verify this patch?

3 similar comments
@mesosphere-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@mesosphere-ci
Copy link
Collaborator

Can one of the admins verify this patch?

@mesosphere-ci
Copy link
Collaborator

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 mesosphere: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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants