-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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(transforms): optional metric namespace in log_to_metric
transform
#21429
fix(transforms): optional metric namespace in log_to_metric
transform
#21429
Conversation
create_log_event_with_namespace(json_str, Some("test_namespace")) | ||
} | ||
|
||
fn create_log_event_with_namespace(json_str: &str, namespace: Option<&str>) -> Event { |
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.
Refactored this function a little bit to not duplicate code
@@ -2003,4 +2014,42 @@ mod tests { | |||
.with_timestamp(Some(ts())) | |||
); | |||
} | |||
|
|||
#[tokio::test] | |||
async fn transform_all_metrics_optional_namespace() { |
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.
Added just one test with the counter
metric kind.
If you find that it would be useful to replicate this test with the other metric kinds, tell me
log_to_metric
transformlog_to_metric
transform
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.
Thanks for this quick fix!
Regression Detector ResultsRun ID: 009d8826-5ca2-4bb5-baa3-669a3b93dafd Metrics dashboard Baseline: 3dfdfbd Performance changes are noted in the perf column of each table:
No significant changes in experiment optimization goalsConfidence level: 90.00% There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.
|
perf | experiment | goal | Δ mean % | Δ mean % CI | links |
---|---|---|---|---|---|
✅ | file_to_blackhole | egress throughput | +32.24 | [+24.07, +40.41] |
Fine details of change detection per experiment
perf | experiment | goal | Δ mean % | Δ mean % CI | links |
---|---|---|---|---|---|
✅ | file_to_blackhole | egress throughput | +32.24 | [+24.07, +40.41] | |
➖ | syslog_humio_logs | ingress throughput | +1.99 | [+1.90, +2.07] | |
➖ | http_text_to_http_json | ingress throughput | +1.48 | [+1.36, +1.59] | |
➖ | syslog_log2metric_splunk_hec_metrics | ingress throughput | +0.64 | [+0.54, +0.75] | |
➖ | syslog_splunk_hec_logs | ingress throughput | +0.33 | [+0.24, +0.41] | |
➖ | http_to_http_noack | ingress throughput | +0.16 | [+0.08, +0.25] | |
➖ | splunk_hec_route_s3 | ingress throughput | +0.16 | [-0.15, +0.48] | |
➖ | datadog_agent_remap_blackhole | ingress throughput | +0.15 | [+0.04, +0.26] | |
➖ | datadog_agent_remap_datadog_logs_acks | ingress throughput | +0.10 | [-0.10, +0.31] | |
➖ | http_elasticsearch | ingress throughput | +0.05 | [-0.12, +0.22] | |
➖ | http_to_http_json | ingress throughput | +0.02 | [-0.02, +0.05] | |
➖ | splunk_hec_to_splunk_hec_logs_noack | ingress throughput | +0.01 | [-0.09, +0.11] | |
➖ | splunk_hec_to_splunk_hec_logs_acks | ingress throughput | -0.00 | [-0.11, +0.10] | |
➖ | splunk_hec_indexer_ack_blackhole | ingress throughput | -0.01 | [-0.09, +0.08] | |
➖ | socket_to_socket_blackhole | ingress throughput | -0.03 | [-0.09, +0.02] | |
➖ | http_to_http_acks | ingress throughput | -0.10 | [-1.32, +1.11] | |
➖ | otlp_grpc_to_blackhole | ingress throughput | -0.26 | [-0.37, -0.15] | |
➖ | otlp_http_to_blackhole | ingress throughput | -0.28 | [-0.41, -0.15] | |
➖ | syslog_loki | ingress throughput | -0.31 | [-0.39, -0.23] | |
➖ | syslog_log2metric_tag_cardinality_limit_blackhole | ingress throughput | -0.39 | [-0.50, -0.28] | |
➖ | http_to_s3 | ingress throughput | -0.47 | [-0.74, -0.20] | |
➖ | datadog_agent_remap_datadog_logs | ingress throughput | -0.51 | [-0.72, -0.30] | |
➖ | datadog_agent_remap_blackhole_acks | ingress throughput | -0.69 | [-0.79, -0.59] | |
➖ | syslog_regex_logs2metric_ddmetrics | ingress throughput | -1.14 | [-1.27, -1.01] | |
➖ | fluent_elasticsearch | ingress throughput | -1.52 | [-2.01, -1.03] | |
➖ | syslog_log2metric_humio_metrics | ingress throughput | -1.64 | [-1.73, -1.54] |
Explanation
A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".
For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:
-
Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.
-
Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.
-
Its configuration does not mark it "erratic".
Regression Detector ResultsRun ID: 6e8a2bb0-c7e8-4908-b682-1dc32b1846f3 Metrics dashboard Baseline: 3eecbe7 Performance changes are noted in the perf column of each table:
No significant changes in experiment optimization goalsConfidence level: 90.00% There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.
|
perf | experiment | goal | Δ mean % | Δ mean % CI | links |
---|---|---|---|---|---|
❌ | file_to_blackhole | egress throughput | -13.65 | [-20.21, -7.10] |
Fine details of change detection per experiment
perf | experiment | goal | Δ mean % | Δ mean % CI | links |
---|---|---|---|---|---|
➖ | syslog_regex_logs2metric_ddmetrics | ingress throughput | +3.34 | [+3.20, +3.47] | |
➖ | http_text_to_http_json | ingress throughput | +2.42 | [+2.30, +2.55] | |
➖ | syslog_splunk_hec_logs | ingress throughput | +1.86 | [+1.79, +1.92] | |
➖ | splunk_hec_route_s3 | ingress throughput | +1.47 | [+1.16, +1.79] | |
➖ | syslog_loki | ingress throughput | +1.23 | [+1.16, +1.31] | |
➖ | syslog_log2metric_tag_cardinality_limit_blackhole | ingress throughput | +1.11 | [+1.03, +1.19] | |
➖ | http_elasticsearch | ingress throughput | +0.86 | [+0.71, +1.01] | |
➖ | datadog_agent_remap_blackhole_acks | ingress throughput | +0.77 | [+0.65, +0.88] | |
➖ | otlp_grpc_to_blackhole | ingress throughput | +0.37 | [+0.26, +0.48] | |
➖ | syslog_log2metric_splunk_hec_metrics | ingress throughput | +0.26 | [+0.15, +0.38] | |
➖ | http_to_s3 | ingress throughput | +0.20 | [-0.06, +0.46] | |
➖ | http_to_http_acks | ingress throughput | +0.05 | [-1.17, +1.28] | |
➖ | http_to_http_json | ingress throughput | +0.05 | [+0.01, +0.10] | |
➖ | http_to_http_noack | ingress throughput | +0.02 | [-0.01, +0.06] | |
➖ | splunk_hec_to_splunk_hec_logs_noack | ingress throughput | +0.01 | [-0.09, +0.11] | |
➖ | splunk_hec_to_splunk_hec_logs_acks | ingress throughput | +0.00 | [-0.11, +0.12] | |
➖ | splunk_hec_indexer_ack_blackhole | ingress throughput | +0.00 | [-0.08, +0.08] | |
➖ | socket_to_socket_blackhole | ingress throughput | -0.02 | [-0.08, +0.04] | |
➖ | datadog_agent_remap_datadog_logs | ingress throughput | -0.09 | [-0.30, +0.12] | |
➖ | fluent_elasticsearch | ingress throughput | -0.19 | [-0.68, +0.30] | |
➖ | otlp_http_to_blackhole | ingress throughput | -0.20 | [-0.34, -0.05] | |
➖ | datadog_agent_remap_blackhole | ingress throughput | -0.38 | [-0.49, -0.28] | |
➖ | datadog_agent_remap_datadog_logs_acks | ingress throughput | -0.49 | [-0.64, -0.34] | |
➖ | syslog_humio_logs | ingress throughput | -0.79 | [-0.89, -0.68] | |
➖ | syslog_log2metric_humio_metrics | ingress throughput | -3.68 | [-3.82, -3.55] | |
❌ | file_to_blackhole | egress throughput | -13.65 | [-20.21, -7.10] |
Explanation
A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".
For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:
-
Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.
-
Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.
-
Its configuration does not mark it "erratic".
Closes #21423
Now this config
Produces the following output: