-
Notifications
You must be signed in to change notification settings - Fork 492
Add metrics for optimization notices #21868
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
Conversation
| session.add_notice(AdapterNotice::DroppedInUseIndex(dropped_in_use_index)); | ||
| self.metrics | ||
| .optimization_notices | ||
| .with_label_values(&["DroppedInUseIndex"]) |
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'm not sure if adding a value should be preferred over adding a separate metric per notice type. cc @teskje what would be better for minimizing the number of metrics?
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 # of time series will be the same either way (the name && labels together are uniquely identifying). what's here looks great
e9c379b to
a67eb34
Compare
umanwizard
left a comment
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
jkosh44
left a comment
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.
Adapter code LGTM
a67eb34 to
168fa78
Compare
teskje
left a comment
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 reviews! |
This adds metrics for the notices that we have about indexes:
This will make it easier to prioritize follow-up work, e.g., adding other similar notices, and surfacing these notices properly in built-in tables and the Web Console.
I also sneaked in a notice message change discussed here.
Motivation
Tips for reviewer
Checklist
$T ⇔ Proto$Tmapping (possibly in a backwards-incompatible way), then it is tagged with aT-protolabel.