Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

haproxy.ssl-verify doesn't like being false #117

Closed
Merlin83b opened this issue Jun 21, 2018 · 3 comments
Closed

haproxy.ssl-verify doesn't like being false #117

Merlin83b opened this issue Jun 21, 2018 · 3 comments

Comments

@Merlin83b
Copy link
Contributor

As per the README.md, I set haproxy.ssl-verify to false:

./haproxy_exporter --haproxy.ssl-verify=false --haproxy.scrape-uri=...

(with a valid URI) and got the following error:

haproxy_exporter: error: unexpected false, try --help

Changing the URI to one that does have a valid SSL cert fixes this, but wasn't what I wanted to do.

@grobie grobie closed this as completed Jun 21, 2018
@grobie grobie reopened this Jun 21, 2018
@grobie
Copy link
Member

grobie commented Jun 21, 2018

The Prometheus project switched to kingpin, which has a rather unique opinion on boolean flags https://github.com/alecthomas/kingpin#boolean-values. Thanks for catching this, wanna send a PR?

@Merlin83b
Copy link
Contributor Author

Super quick response, thanks! That worked, will get a PR worked up shortly.

Merlin83b added a commit to Merlin83b/haproxy_exporter that referenced this issue Jun 21, 2018
Change as per prometheus#117
Signed-off-by: Daniel Foster <daniel@df.me.uk>
Merlin83b added a commit to Merlin83b/haproxy_exporter that referenced this issue Jun 21, 2018
Change as per prometheus#117
Signed-off-by: Daniel Foster <merlin83b@users.noreply.github.com>
@Merlin83b
Copy link
Contributor Author

Third time lucky!

grobie pushed a commit that referenced this issue Jun 21, 2018
Change as per #117
Signed-off-by: Daniel Foster <merlin83b@users.noreply.github.com>
@grobie grobie closed this as completed Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants