-
Notifications
You must be signed in to change notification settings - Fork 466
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 prometheus metric for per partition high watermark #11148
Add prometheus metric for per partition high watermark #11148
Conversation
c60e4a4
to
275bad5
Compare
a2973db
to
8d28582
Compare
9084fc7
to
d737730
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.
The code LGTM, but please add a testdrive test that exercises metric reporting int he face of dynamic partition additions!
------------------ | ||
0 2 | ||
1 2 | ||
2 1 |
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.
This test looks great. Glad it already paid some dividends, too!
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.
🎉
…c#11148) * initial addition of broker high watermark per partition * lint * fix rebase * clean up deserialization * use cursor instead of raw vec * Lint * address feedback * add tests, fix issues found by tests * lint * feedback * lint
As mentioned in https://github.com/MaterializeInc/cloud/issues/2355 there is a desire to have the broker reported high watermark for each partition available in metrics which was lost when the interaction with kafka was reworked. This PR adds the metric
mz_kafka_partition_offset_max
with tags fortopic
,source_id
,source_instance
andpartition_id
to the set exported by prometheus which also puts it into themz_metrics
system table.Motivation
https://github.com/MaterializeInc/cloud/issues/2355
Tips for reviewer
No, high watermark is not the correct spelling but its what kafka and rdkafka use so we will all have to wonder exactly what happens to a watermark to get it high or low.
Testing
Release notes
This PR includes the following user-facing behavior changes: