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

prometheus::haproxy_exporter Failing #261

Closed
joaquin386 opened this issue Sep 23, 2018 · 2 comments
Closed

prometheus::haproxy_exporter Failing #261

joaquin386 opened this issue Sep 23, 2018 · 2 comments

Comments

@joaquin386
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.0.0
  • Ruby: 2.3.3
  • Distribution: Comunity Edition
  • Module version: 6.1.0

How to reproduce (e.g Puppet code you use)

class { 'prometheus::haproxy_exporter':
version => '0.9.0',
cnf_scrape_uri => "http://${::ipaddress}:9000/haproxy?stats;csv",
}

What are you seeing

Systemctl start haproxy_exporter -> Doesn't start correctly

What behaviour did you expect instead

systemctl start haproxy_exporter.service -> starts correctly

Output log

Sep 23 11:23:30 ip-10-0-25-10.eu-west-1.compute.internal haproxy_exporter[1801]: haproxy_exporter: error: unknown short flag '-a', try --help
Sep 23 11:23:30 ip-10-0-25-10.eu-west-1.compute.internal systemd[1]: haproxy_exporter.service: main process exited, code=exited, status=1/FAILURE
Sep 23 11:23:30 ip-10-0-25-10.eu-west-1.compute.internal systemd[1]: Unit haproxy_exporter.service entered failed state.
Sep 23 11:23:30 ip-10-0-25-10.eu-west-1.compute.internal systemd[1]: haproxy_exporter.service failed.
Sep 23 11:23:30 ip-10-0-25-10.eu-west-1.compute.internal systemd[1]: haproxy_exporter.service holdoff time over, scheduling restart.
Sep 23 11:23:30 ip-10-0-25-10.eu-west-1.compute.internal systemd[1]: start request repeated too quickly for haproxy_exporter.service
Sep 23 11:23:30 ip-10-0-25-10.eu-west-1.compute.internal systemd[1]: Failed to start Prometheus haproxy_exporter.

Any additional information you'd like to impart

Problem on

$options = "-haproxy.scrape-uri=\"${cnf_scrape_uri}\" ${extra_options}"

It should be --haproxy instead of -haproxy

@bastelfreak
Copy link
Member

Hi @joaquin386, could you provide a PR for this? depending on the haproxy_exporter version the options need to be prefixed with - or --.

@joaquin386
Copy link
Author

It is already done here: #179
Closing this issue.

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

No branches or pull requests

2 participants