-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
release-23.2: changefeedccl: add scoping support for max_behind_nanos #139241
Conversation
Thanks for opening a backport. Please check the backport criteria before merging:
If your backport adds new functionality, please ensure that the following additional criteria are satisfied:
Also, please add a brief release justification to the body of your PR to justify this |
drive-by comment: a little suspicious that we're "undeprecating" a metric in a backport. does it merit mentioning in the release note? not sure how heavily these are being used by customers. |
FWIW in practice this metric is heavily used by customers, despite the deprecation warning |
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 there were some issues with the conflict resolution here
pkg/ccl/changefeedccl/metrics.go
Outdated
@@ -959,7 +968,7 @@ func newAggregateMetrics(histogramWindow time.Duration, lookup *cidr.Lookup) *Ag | |||
TotalRanges: b.Gauge(metaTotalRanges), | |||
CloudstorageBufferedBytes: b.Gauge(metaCloudstorageBufferedBytes), | |||
SinkErrors: b.Counter(metaSinkErrors), | |||
Timers: timers.New(histogramWindow), | |||
MaxBehindNanos: b.FunctionalGauge(metaChangefeedMaxBehindNanos, functionalGaugeMaxFn),Timers: timers.New(histogramWindow), |
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.
bad merge / needs fmt?
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.
Fixing that
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @asg0451, @dhartunian, and @wenyihu6)
Currently, changefeed.max_behind_nanos is a measurement of the lag of the furthest behind changefeed. We'd like to be able to support scoping/grouping changefeeds. This applies scoping to that metric similar to the scoping on changefeed.aggregator_progress. Fixes: cockroachdb#132281 Release note (ops change): the changefeed.max_behind_nanos metric now supports scoping with metric labels.
c188534
to
80ce6d5
Compare
Backport 1/1 commits from #137534.
/cc @cockroachdb/release
release justification: needed for client
Currently, changefeed.max_behind_nanos is a measurement of the
lag of the furthest behind changefeed. We'd like to be able to
support scoping/grouping changefeeds. This applies scoping to
that metric similar to the scoping on changefeed.aggregator_progress.
Epic: none
Fixes: #132281
Release note (ops change): the changefeed.max_behind_nanos metric
now supports scoping with metric labels.