-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix(throttle transform)!: make events_discarded_total
internal metric with key
tag opt-in
#19083
Conversation
@@ -8,23 +7,12 @@ pub(crate) struct ThrottleEventDiscarded { | |||
|
|||
impl InternalEvent for ThrottleEventDiscarded { | |||
fn emit(self) { | |||
// TODO: Technically, the Component Specification states that the discarded events metric |
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.
Deleting TODO
s sparks joy.
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 we should consider making this tag opt-in since users do seem to find it useful to be able to graph dropped events per partition. key
is generally a bounded, though potentially large, set.
That is fair. This is very similar to the |
Yeah, I agree. It would be useful to come up with a generalized solution here that could be applied across components that could include things like a cardinality limit. In absence of that, I'd suggest just making this one opt-in or opt-out. |
src/internal_events/throttle.rs
Outdated
|
||
debug!(message, key = self.key, internal_log_rate_limit = true); | ||
if self.emit_events_discarded_per_key { | ||
counter!("events_discarded_total", 1, "key" => self.key); |
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.
Outside of the scope of this PR, but we may want to think about renaming this to component_events_discarded_total
in the future.
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.
Yeah, I'm going back and forth on that. That would require extending the current component specification for the component_events_discarded_total
metric and could also significantly increase the cardinality of that metric. If there are cardinality issues, I would prefer that the impact be isolated to a one-off, single-use metric rather than impacting a metric used by all components. However, that does result in an inferior UX on the other hand in my opinion.
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'll add back the TODO.
website/content/en/highlights/2023-12-19-0-35-0-upgrade-guide.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Esther Kim <esthercodes2019@gmail.com>
events_discarded_total
internal metric with key
tag opt-in
Regression Detector ResultsRun ID: 53f15605-a4b1-41fd-81f2-052dca114025 ExplanationA regression test is an integrated performance test for Because a target's optimization goal performance in each experiment will vary somewhat each time it is run, we can only estimate mean differences in optimization goal relative to the baseline target. We express these differences as a percentage change relative to the baseline target, denoted "Δ mean %". These estimates are made to a precision that balances accuracy and cost control. We represent this precision as a 90.00% confidence interval denoted "Δ mean % CI": there is a 90.00% chance that the true value of "Δ mean %" is in that interval. We decide whether a change in performance is a "regression" -- a change worth investigating further -- if both of the following two criteria are true:
The table below, if present, lists those experiments that have experienced a statistically significant change in mean optimization goal performance between baseline and comparison SHAs with 90.00% confidence OR have been detected as newly erratic. Negative values of "Δ mean %" mean that baseline is faster, whereas positive values of "Δ mean %" mean that comparison is faster. Results that do not exhibit more than a ±5.00% change in their mean optimization goal are discarded. An experiment is erratic if its coefficient of variation is greater than 0.1. The abbreviated table will be omitted if no interesting change is observed. No interesting changes in experiment optimization goals with confidence ≥ 90.00% and |Δ mean %| ≥ 5.00%. Fine details of change detection per experiment.
|
…ic with `key` tag opt-in (#19083) * fix(throttle transform): replace metric with unbounded cardinality with a debug log * make the counter opt-in * clean up * spelling * remove double the * OPW-94 * Update website/content/en/highlights/2023-12-19-0-35-0-upgrade-guide.md Co-authored-by: Esther Kim <esthercodes2019@gmail.com> * add back todo * make internal_metrics optional --------- Co-authored-by: Esther Kim <esthercodes2019@gmail.com>
…ic with `key` tag opt-in (vectordotdev#19083) * fix(throttle transform): replace metric with unbounded cardinality with a debug log * make the counter opt-in * clean up * spelling * remove double the * OPW-94 * Update website/content/en/highlights/2023-12-19-0-35-0-upgrade-guide.md Co-authored-by: Esther Kim <esthercodes2019@gmail.com> * add back todo * make internal_metrics optional --------- Co-authored-by: Esther Kim <esthercodes2019@gmail.com>
…ic with `key` tag opt-in (#19083) * fix(throttle transform): replace metric with unbounded cardinality with a debug log * make the counter opt-in * clean up * spelling * remove double the * OPW-94 * Update website/content/en/highlights/2023-12-19-0-35-0-upgrade-guide.md Co-authored-by: Esther Kim <esthercodes2019@gmail.com> * add back todo * make internal_metrics optional --------- Co-authored-by: Esther Kim <esthercodes2019@gmail.com>
…ic with `key` tag opt-in (#19083) * fix(throttle transform): replace metric with unbounded cardinality with a debug log * make the counter opt-in * clean up * spelling * remove double the * OPW-94 * Update website/content/en/highlights/2023-12-19-0-35-0-upgrade-guide.md Co-authored-by: Esther Kim <esthercodes2019@gmail.com> * add back todo * make internal_metrics optional --------- Co-authored-by: Esther Kim <esthercodes2019@gmail.com>
…ic with `key` tag opt-in (#19083) * fix(throttle transform): replace metric with unbounded cardinality with a debug log * make the counter opt-in * clean up * spelling * remove double the * OPW-94 * Update website/content/en/highlights/2023-12-19-0-35-0-upgrade-guide.md Co-authored-by: Esther Kim <esthercodes2019@gmail.com> * add back todo * make internal_metrics optional --------- Co-authored-by: Esther Kim <esthercodes2019@gmail.com>
…ic with `key` tag opt-in (vectordotdev#19083) * fix(throttle transform): replace metric with unbounded cardinality with a debug log * make the counter opt-in * clean up * spelling * remove double the * OPW-94 * Update website/content/en/highlights/2023-12-19-0-35-0-upgrade-guide.md Co-authored-by: Esther Kim <esthercodes2019@gmail.com> * add back todo * make internal_metrics optional --------- Co-authored-by: Esther Kim <esthercodes2019@gmail.com>
The
key
tag has unbounded cardinality, so this tag is now opt-in.Fixes #17778