-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
update haproxy exporter default to 0.9.0, fix options and allow unix … #280
update haproxy exporter default to 0.9.0, fix options and allow unix … #280
Conversation
Failed because of:
|
1333dac
to
3c8adea
Compare
@@ -73,15 +73,15 @@ | |||
# The binary release version | |||
|
|||
class prometheus::haproxy_exporter( | |||
Variant[Stdlib::HTTPUrl, Stdlib::HTTPSUrl] $cnf_scrape_uri, | |||
Variant[Stdlib::HTTPUrl, Pattern[/unix:(?:\/.+)+/]] $cnf_scrape_uri, |
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 did you remove the https type?
- Would https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/types/unixpath.pp work as well for a unix socket?
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 removed https type because Stdlib::HTTPUrl covers both http and httpS, see https://github.com/puppetlabs/puppetlabs-stdlib#user-content-stdlibhttpurl
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.
Unixpath doesn't work for path as it doesn't allow ":" in the pattern.
Example of what I'm currently using: unix:/var/lib/haproxy/stats
@@ -110,7 +110,7 @@ prometheus::haproxy_exporter::group: 'haproxy-exporter' | |||
prometheus::haproxy_exporter::package_ensure: 'latest' | |||
prometheus::haproxy_exporter::package_name: 'haproxy_exporter' | |||
prometheus::haproxy_exporter::user: 'haproxy-user' | |||
prometheus::haproxy_exporter::version: '0.7.1' | |||
prometheus::haproxy_exporter::version: '0.9.0' |
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.
can you please add an acceptance test that first explictly installs 0.7.1 and afterwards upgrades it to 0.9.0? We already have a few tests in this repo that do the same for other exporters.
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.
Makes sense. I'll check this asap.
Hi @dynek, thanks for the PR. Can you take a look at the used email address in your commits? It isn't associated with your github account. |
…socket to be used as polling mechanism
3c8adea
to
aa8dac7
Compare
My bad - Is it OK for you now? |
ae57e15
to
14cd466
Compare
@bastelfreak finally added acceptance tests but all CI tests are failing because |
Yes it looks a travis issue. Several modules are concerned by this issue. |
There we go, checks have passed. |
@bastelfreak anything else I can do? |
Thanks for the PR @dynek ! |
update haproxy exporter default to 0.9.0, fix options and allow unix …
update haproxy exporter default to 0.9.0, fix options and allow unix …
Pull Request (PR) description