Skip to content

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

Open
mchugh19 wants to merge 1 commit intoneurogeek:masterfrom
mchugh19:master
Open

Add command to get current sessions for server in backend#6
mchugh19 wants to merge 1 commit intoneurogeek:masterfrom
mchugh19:master

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