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

Add command to get current sessions for server in backend #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mchugh19
Copy link

Currently, not all haproxy stats are accessible from haproxyctl. This code adds a new command to query the number of current sessions for a specified server from a specified backend.

This fits my needs, but perhaps consideration should be given to a more general stats reporter?


for line in res.split('\n'):
if line.startswith(self.args['backend']):
# Lines for server start with the name of the
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed an indent here, right?

@neurogeek
Copy link
Owner

Hi @mchugh19, that looks good and I'll gladly merge it.
Would you mind taking a look at my comments?
Thanks for the contribution!

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

Successfully merging this pull request may close these issues.

2 participants