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

HAProxy module authentication support for metrics #5178

Closed
sgelastic opened this issue Sep 14, 2017 · 5 comments · Fixed by #5819
Closed

HAProxy module authentication support for metrics #5178

sgelastic opened this issue Sep 14, 2017 · 5 comments · Fixed by #5819
Labels

Comments

@sgelastic
Copy link

HAProxy metrics can be configured with authentication. The MetricBeat HAProxy module does not seem to be able to pull this data when authentication is supported. My client is adamant he needs this feature to monitor sensitive production devices.

@andrewkroh
Copy link
Member

What type of authentication are you referring to? Can you please provide an example configuration for the HAProxy side. That will help us with coming up with a test case.

@sgelastic
Copy link
Author

This is how you configure HAProxy to collect and display metrics with authentication:

listen stats :9000 # Listen on localhost:9000
mode http
stats enable # Enable stats page
stats hide-version # Hide HAProxy version
stats realm Haproxy\ Statistics # Title text for popup window
stats uri /haproxy_stats # Stats URI
stats auth Username:Password # Authentication credentials

https://www.datadoghq.com/blog/how-to-collect-haproxy-metrics/

@exekias
Copy link
Contributor

exekias commented Oct 24, 2017

This should be working already, we just have to update docs, please check #4457

@sgelastic
Copy link
Author

Has anyone actually tested this, because we could not get it to work, which is why I opened this ticket.

@ruflin
Copy link
Contributor

ruflin commented Dec 27, 2017

@sgelastic #5819 was just merged thanks to @jsoriano . Would be great if you could test this with a snapshot build again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants