-
Notifications
You must be signed in to change notification settings - Fork 140
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
Conversation
@@ -19,7 +19,7 @@ import ( | |||
"testing" | |||
"time" | |||
|
|||
"github.com/nats-io/go-nats-streaming" | |||
stan "github.com/nats-io/go-nats-streaming" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
awesome, thanks :D |
The idea is to be able to alert if
pending_bytes
is close tomax_pending
.I also fixed the streaming metrics so they have the same
server_id
label as all other metrics (instead ofserver
).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.