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

feat: connz: monitor pending bytes #75

Merged
merged 3 commits into from
May 17, 2019
Merged

feat: connz: monitor pending bytes #75

merged 3 commits into from
May 17, 2019

Conversation

caarlos0
Copy link
Contributor

@caarlos0 caarlos0 commented May 17, 2019

The idea is to be able to alert if pending_bytes is close to max_pending.

I also fixed the streaming metrics so they have the same server_id label as all other metrics (instead of server).

I wanted to avoid too much cardinality, that's why I just reported one metric with the sum of all pending bytes. If you think its best to have them as separated metrics I can definitely change that.

@@ -19,7 +19,7 @@ import (
"testing"
"time"

"github.com/nats-io/go-nats-streaming"
stan "github.com/nats-io/go-nats-streaming"
Copy link
Member

Choose a reason for hiding this comment

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

we should update this to github.com/nats-io/stan.go soon probably... can do after this PR if it does not affect the build

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dunno why it changed the import 🤔

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 90.147% when pulling 312a070 on caarlos0:connz-pending-bytes into 15da6ff on nats-io:master.

Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@wallyqs wallyqs merged commit b42714b into nats-io:master May 17, 2019
@caarlos0 caarlos0 deleted the connz-pending-bytes branch May 17, 2019 18:58
@caarlos0
Copy link
Contributor Author

awesome, thanks :D

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.

3 participants