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

(2.11) [ADDED] Monitoring: SlowConsumersStats in PING/STATSZ messages #5894

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

kozlovic
Copy link
Member

(also fixed a flapper)

Resolves #5877

Signed-off-by: Ivan Kozlovic ivan@synadia.com

Resolves #5877

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Leafs: s.NumSlowConsumersLeafs(),
}
if scs.Clients != 0 || scs.Routes != 0 || scs.Gateways != 0 || scs.Leafs != 0 {
m.Stats.SlowConsumersStats = scs
Copy link
Member Author

Choose a reason for hiding this comment

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

@derekcollison @ripienaar I did this way so that the field is omitted if they are all zero.

Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

@derekcollison derekcollison merged commit cec21b7 into main Sep 17, 2024
5 checks passed
@derekcollison derekcollison deleted the er_5877 branch September 17, 2024 00:38
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.

Add SlowConsumersStats to stats
2 participants