-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
haproxy: enable the Prometheus Exporter service #27442
base: master
Are you sure you want to change the base?
Conversation
net/haproxy/Portfile
Outdated
variant promex description {Build with Prometheus Exporter service} { | ||
build.args-append USE_PROMEX=1 | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why does this need to be a variant? It doesn't appear to have any additional dependencies, so why not always enable it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made it a variant because it's opt-in in "base" haproxy and opt-out in the nix package of haproxy.
But that's not a great reason; I'll make it always-on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but are you sure it doesn't need an external dependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes:
- the top-level
Makefile
adds only source and include paths inside the HAProxy repo - the
#include
statements inaddons/promex
source and header files) reference only files inside the HAProxy repo - and the nix package dependency list is invariant over
withPrometheusExporter
(I'm totally cribbing from nix because I'm testing something locally that will run on NixOS in production)
Signed-off-by: Graham Reed <[email protected]>
4755bf9
to
2fb665d
Compare
Description
haproxy: enable the Prometheus Exporter service
Type(s)
Tested on
macOS 14.7.2 23H311 arm64
Xcode 16.2 16C5032a
Verification
Have you
port lint
?sudo port test
?sudo port -vst install
?