-
Notifications
You must be signed in to change notification settings - Fork 4
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 metrics (writes and error counts, timing) for consumer mode #37
Conversation
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.
Nice one @56quarters that looks already pretty close. See my comments in line.
I think it would be great if we could cover the metrics as part of the integration test through https://github.com/prometheus/client_golang/tree/master/prometheus/testutil
I'll take a look at testing metrics as part of the integration tests. |
* Use single metrics struct for producer and consumer * Move ownership of metrics to App (singleton instance) * Add tenant ID to all metrics emitted * Assorted cleanup
b81752b
to
b06d66a
Compare
472b869
to
f5ce0a3
Compare
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.
I think it's almost there. See my comments relating the Pulsar
, GoCollector
and ProcessCollector
metrics
* Use default registry by default since other libraries do (pulsar client) and only use a fresh registry for our integration tests.
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 for the metrics 👍
Fixes #36