-
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
enhancement(source metrics): Adding a histogram for event byte size #19686
Conversation
This is an interesting addition, we use histograms for this kind of data too in our non-Vector components. However, with histograms you often need to pay attention to the pre-defined buckets which depend on the measured data. From https://www.robustperception.io/how-does-a-prometheus-histogram-work/:
|
yeah good question - I believe users would create an Thoughts? |
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 @pabloem ! This looks good to me.
I'll fix up failed CI this evening (EST tzone) |
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! In addition to the CI failure, this change needs a changelog entry. See https://github.com/vectordotdev/vector/blob/master/changelog.d/README.md for details.
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.
Just marking needs changes.
fe54eb2
to
cd6b66d
Compare
@jszwedko thanks for the review! Hopefully changes are enough! |
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 @pabloem ! A couple of more comments when you have some time.
…el sources like UDP, TCP sockets
…ally those based on UDP).
998ca53
to
d172f6b
Compare
I've actually changed these because I was intending to cover the lower-level protocols (UDP, TCP-based ones), and was actually covering higher-level ones (HTTP-based ones) - please take another look? @jszwedko |
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! This seems like a reasonable addition to me. Let me surface this for additional reviews.
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
8eb3600
to
04a4e28
Compare
Regression Detector ResultsRun ID: c3e7b8bf-2afa-48f1-b37a-38eb9e9e060e Performance changes are noted in the perf column of each table:
Significant changes in experiment optimization goalsConfidence level: 90.00%
|
perf | experiment | goal | Δ mean % | Δ mean % CI |
---|---|---|---|---|
✅ | otlp_http_to_blackhole | ingress throughput | +5.69 | [+5.54, +5.84] |
➖ | socket_to_socket_blackhole | ingress throughput | +4.93 | [+4.87, +4.99] |
➖ | syslog_log2metric_tag_cardinality_limit_blackhole | ingress throughput | +4.54 | [+4.38, +4.71] |
➖ | syslog_humio_logs | ingress throughput | +4.07 | [+3.87, +4.28] |
➖ | http_text_to_http_json | ingress throughput | +2.53 | [+2.34, +2.72] |
➖ | fluent_elasticsearch | ingress throughput | +1.98 | [+1.47, +2.48] |
➖ | syslog_log2metric_humio_metrics | ingress throughput | +1.95 | [+1.78, +2.12] |
➖ | syslog_loki | ingress throughput | +1.14 | [+1.08, +1.20] |
➖ | http_elasticsearch | ingress throughput | +0.94 | [+0.85, +1.02] |
➖ | file_to_blackhole | egress throughput | +0.64 | [-1.98, +3.26] |
➖ | datadog_agent_remap_blackhole | ingress throughput | +0.35 | [+0.25, +0.44] |
➖ | datadog_agent_remap_blackhole_acks | ingress throughput | +0.31 | [+0.17, +0.45] |
➖ | http_to_http_noack | ingress throughput | +0.08 | [-0.02, +0.18] |
➖ | otlp_grpc_to_blackhole | ingress throughput | +0.07 | [-0.03, +0.16] |
➖ | http_to_http_json | ingress throughput | +0.04 | [-0.03, +0.12] |
➖ | splunk_hec_to_splunk_hec_logs_acks | ingress throughput | -0.00 | [-0.14, +0.14] |
➖ | splunk_hec_indexer_ack_blackhole | ingress throughput | -0.01 | [-0.15, +0.13] |
➖ | splunk_hec_to_splunk_hec_logs_noack | ingress throughput | -0.05 | [-0.16, +0.06] |
➖ | enterprise_http_to_http | ingress throughput | -0.13 | [-0.20, -0.05] |
➖ | http_to_s3 | ingress throughput | -0.14 | [-0.43, +0.14] |
➖ | datadog_agent_remap_datadog_logs | ingress throughput | -0.37 | [-0.48, -0.25] |
➖ | datadog_agent_remap_datadog_logs_acks | ingress throughput | -0.81 | [-0.91, -0.72] |
➖ | splunk_hec_route_s3 | ingress throughput | -0.82 | [-1.31, -0.33] |
➖ | syslog_splunk_hec_logs | ingress throughput | -1.31 | [-1.47, -1.16] |
➖ | http_to_http_acks | ingress throughput | -1.40 | [-2.75, -0.05] |
➖ | syslog_regex_logs2metric_ddmetrics | ingress throughput | -2.34 | [-2.51, -2.17] |
➖ | syslog_log2metric_splunk_hec_metrics | ingress throughput | -2.74 | [-2.93, -2.55] |
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: d6b95f0d-6bd2-4d70-bd07-d30f8c206fa4 Performance changes are noted in the perf column of each table:
Significant changes in experiment optimization goalsConfidence level: 90.00%
|
perf | experiment | goal | Δ mean % | Δ mean % CI |
---|---|---|---|---|
➖ | syslog_humio_logs | ingress throughput | +4.22 | [+4.09, +4.36] |
➖ | syslog_log2metric_humio_metrics | ingress throughput | +3.60 | [+3.47, +3.74] |
➖ | file_to_blackhole | egress throughput | +2.69 | [+0.19, +5.18] |
➖ | splunk_hec_route_s3 | ingress throughput | +2.38 | [+1.88, +2.88] |
➖ | datadog_agent_remap_blackhole | ingress throughput | +1.60 | [+1.48, +1.73] |
➖ | http_to_http_acks | ingress throughput | +1.19 | [-0.18, +2.55] |
➖ | syslog_splunk_hec_logs | ingress throughput | +1.16 | [+1.07, +1.25] |
➖ | http_text_to_http_json | ingress throughput | +0.32 | [+0.18, +0.46] |
➖ | http_to_s3 | ingress throughput | +0.29 | [+0.01, +0.57] |
➖ | http_to_http_noack | ingress throughput | +0.10 | [+0.02, +0.19] |
➖ | http_to_http_json | ingress throughput | +0.05 | [-0.03, +0.12] |
➖ | splunk_hec_to_splunk_hec_logs_acks | ingress throughput | -0.00 | [-0.14, +0.14] |
➖ | splunk_hec_indexer_ack_blackhole | ingress throughput | -0.00 | [-0.15, +0.14] |
➖ | splunk_hec_to_splunk_hec_logs_noack | ingress throughput | -0.02 | [-0.14, +0.09] |
➖ | syslog_log2metric_splunk_hec_metrics | ingress throughput | -0.04 | [-0.22, +0.14] |
➖ | enterprise_http_to_http | ingress throughput | -0.05 | [-0.11, +0.01] |
➖ | syslog_log2metric_tag_cardinality_limit_blackhole | ingress throughput | -0.13 | [-0.28, +0.03] |
➖ | http_elasticsearch | ingress throughput | -0.37 | [-0.46, -0.28] |
➖ | datadog_agent_remap_datadog_logs_acks | ingress throughput | -0.41 | [-0.51, -0.31] |
➖ | datadog_agent_remap_blackhole_acks | ingress throughput | -0.84 | [-0.96, -0.72] |
➖ | otlp_grpc_to_blackhole | ingress throughput | -0.91 | [-0.99, -0.82] |
➖ | syslog_loki | ingress throughput | -1.05 | [-1.16, -0.93] |
➖ | datadog_agent_remap_datadog_logs | ingress throughput | -1.08 | [-1.20, -0.96] |
➖ | fluent_elasticsearch | ingress throughput | -1.17 | [-1.64, -0.69] |
➖ | socket_to_socket_blackhole | ingress throughput | -2.85 | [-2.94, -2.76] |
➖ | otlp_http_to_blackhole | ingress throughput | -4.98 | [-5.12, -4.84] |
❌ | syslog_regex_logs2metric_ddmetrics | ingress throughput | -6.84 | [-7.00, -6.69] |
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: 9895491f-00d2-419f-8b43-2045927ac8f3 Performance changes are noted in the perf column of each table:
Significant changes in experiment optimization goalsConfidence level: 90.00%
|
perf | experiment | goal | Δ mean % | Δ mean % CI |
---|---|---|---|---|
➖ | syslog_log2metric_humio_metrics | ingress throughput | +4.05 | [+3.92, +4.18] |
➖ | syslog_humio_logs | ingress throughput | +2.80 | [+2.66, +2.94] |
➖ | file_to_blackhole | egress throughput | +2.16 | [-0.37, +4.69] |
➖ | http_elasticsearch | ingress throughput | +1.93 | [+1.84, +2.01] |
➖ | splunk_hec_route_s3 | ingress throughput | +1.31 | [+0.86, +1.77] |
➖ | http_text_to_http_json | ingress throughput | +1.04 | [+0.89, +1.18] |
➖ | syslog_regex_logs2metric_ddmetrics | ingress throughput | +0.78 | [+0.69, +0.88] |
➖ | datadog_agent_remap_blackhole | ingress throughput | +0.43 | [+0.34, +0.52] |
➖ | otlp_grpc_to_blackhole | ingress throughput | +0.34 | [+0.25, +0.44] |
➖ | syslog_splunk_hec_logs | ingress throughput | +0.18 | [+0.06, +0.29] |
➖ | http_to_http_noack | ingress throughput | +0.15 | [+0.06, +0.24] |
➖ | http_to_http_json | ingress throughput | +0.05 | [-0.03, +0.13] |
➖ | splunk_hec_indexer_ack_blackhole | ingress throughput | +0.00 | [-0.14, +0.15] |
➖ | splunk_hec_to_splunk_hec_logs_acks | ingress throughput | -0.00 | [-0.14, +0.14] |
➖ | http_to_s3 | ingress throughput | -0.03 | [-0.31, +0.25] |
➖ | splunk_hec_to_splunk_hec_logs_noack | ingress throughput | -0.04 | [-0.16, +0.07] |
➖ | datadog_agent_remap_datadog_logs_acks | ingress throughput | -0.07 | [-0.16, +0.02] |
➖ | http_to_http_acks | ingress throughput | -0.11 | [-1.47, +1.26] |
➖ | enterprise_http_to_http | ingress throughput | -0.12 | [-0.19, -0.05] |
➖ | datadog_agent_remap_blackhole_acks | ingress throughput | -0.21 | [-0.33, -0.10] |
➖ | syslog_log2metric_splunk_hec_metrics | ingress throughput | -0.75 | [-0.90, -0.60] |
➖ | syslog_loki | ingress throughput | -0.88 | [-0.93, -0.83] |
➖ | datadog_agent_remap_datadog_logs | ingress throughput | -1.05 | [-1.15, -0.94] |
➖ | syslog_log2metric_tag_cardinality_limit_blackhole | ingress throughput | -1.70 | [-1.84, -1.56] |
➖ | fluent_elasticsearch | ingress throughput | -2.03 | [-2.51, -1.55] |
➖ | socket_to_socket_blackhole | ingress throughput | -2.70 | [-2.78, -2.61] |
❌ | otlp_http_to_blackhole | ingress throughput | -5.21 | [-5.34, -5.07] |
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".
fwiw the fact that the possible regression appears in two different tests in two different runs (and those two tests are not correlated between runs) makes me think the regressions are not caused by this change : ) |
It does seem suspicious that the runs didn't match up. I could see a change like this having some overhead but it should be relatively negligible. It also wouldn't affect |
Regression Detector ResultsRun ID: 72a62763-307f-41ff-9cb7-201e3d14b87c 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 |
---|---|---|---|---|
➖ | syslog_regex_logs2metric_ddmetrics | ingress throughput | +2.50 | [+2.37, +2.62] |
➖ | syslog_log2metric_splunk_hec_metrics | ingress throughput | +1.85 | [+1.69, +2.01] |
➖ | otlp_http_to_blackhole | ingress throughput | +1.78 | [+1.65, +1.92] |
➖ | http_text_to_http_json | ingress throughput | +1.71 | [+1.59, +1.84] |
➖ | syslog_log2metric_humio_metrics | ingress throughput | +1.66 | [+1.52, +1.81] |
➖ | fluent_elasticsearch | ingress throughput | +1.48 | [+0.99, +1.96] |
➖ | syslog_loki | ingress throughput | +1.29 | [+1.23, +1.34] |
➖ | syslog_splunk_hec_logs | ingress throughput | +1.23 | [+1.16, +1.31] |
➖ | datadog_agent_remap_blackhole_acks | ingress throughput | +0.74 | [+0.65, +0.83] |
➖ | otlp_grpc_to_blackhole | ingress throughput | +0.63 | [+0.54, +0.73] |
➖ | http_to_http_acks | ingress throughput | +0.63 | [-0.74, +2.00] |
➖ | http_to_http_noack | ingress throughput | +0.17 | [+0.08, +0.27] |
➖ | socket_to_socket_blackhole | ingress throughput | +0.09 | [+0.03, +0.16] |
➖ | splunk_hec_route_s3 | ingress throughput | +0.05 | [-0.40, +0.50] |
➖ | http_to_http_json | ingress throughput | +0.00 | [-0.07, +0.07] |
➖ | splunk_hec_to_splunk_hec_logs_acks | ingress throughput | -0.00 | [-0.14, +0.14] |
➖ | splunk_hec_indexer_ack_blackhole | ingress throughput | -0.00 | [-0.15, +0.14] |
➖ | splunk_hec_to_splunk_hec_logs_noack | ingress throughput | -0.03 | [-0.15, +0.08] |
➖ | http_to_s3 | ingress throughput | -0.06 | [-0.34, +0.22] |
➖ | enterprise_http_to_http | ingress throughput | -0.13 | [-0.21, -0.04] |
➖ | http_elasticsearch | ingress throughput | -0.71 | [-0.78, -0.64] |
➖ | datadog_agent_remap_blackhole | ingress throughput | -0.88 | [-0.98, -0.79] |
➖ | datadog_agent_remap_datadog_logs_acks | ingress throughput | -0.89 | [-0.98, -0.80] |
➖ | syslog_humio_logs | ingress throughput | -1.47 | [-1.58, -1.35] |
➖ | syslog_log2metric_tag_cardinality_limit_blackhole | ingress throughput | -1.57 | [-1.70, -1.45] |
➖ | datadog_agent_remap_datadog_logs | ingress throughput | -1.93 | [-2.04, -1.82] |
➖ | file_to_blackhole | egress throughput | -2.59 | [-4.98, -0.20] |
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".
…ectordotdev#19686) * Adding a histogram for event byte size. Useful when debugging low-level sources like UDP, TCP sockets * Adding documentation and fixing CI * fixing things up * Making sure only low-level sources have event size histograms (especially those based on UDP). * Add docs fixes * cargo fmt * fixup
Useful when debugging low-level sources like UDP, TCP sockets
If this metric looks good, I can add docs and we can prepare to merge. Thanks!