Skip to content
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

chore(observability): set sent_event and received_event metrics to estimated json size #17548

Closed
wants to merge 1 commit into from

Conversation

StephenWakely
Copy link
Contributor

This is a copy of #17465 but without the JsonSize wrapper. That PR introduced some performance regressions, so this is to see if the regressions are because of the wrapper, or because we are using the different metrics in various places.

Signed-off-by: Stephen Wakely <fungus.humungus@gmail.com>
@StephenWakely StephenWakely requested a review from neuronull as a code owner May 31, 2023 11:00
@StephenWakely StephenWakely requested a review from a team May 31, 2023 11:00
@netlify
Copy link

netlify bot commented May 31, 2023

Deploy Preview for vrl-playground canceled.

Name Link
🔨 Latest commit a4ebb12
🔍 Latest deploy log https://app.netlify.com/sites/vrl-playground/deploys/647728eb58d962000862cf96

@netlify
Copy link

netlify bot commented May 31, 2023

Deploy Preview for vector-project ready!

Name Link
🔨 Latest commit a4ebb12
🔍 Latest deploy log https://app.netlify.com/sites/vector-project/deploys/647728eb61a1f1000867cff1
😎 Deploy Preview https://deploy-preview-17548--vector-project.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the domain: sinks Anything related to the Vector's sinks label May 31, 2023
@StephenWakely
Copy link
Contributor Author

/ci-run-regression

@datadog-vectordotdev
Copy link

datadog-vectordotdev bot commented May 31, 2023

Datadog Report

Branch report: stephen/maybe_faster_event_json_size
Commit report: 866e71b

vector: 0 Failed, 0 New Flaky, 2098 Passed, 0 Skipped, 6m 44.13s Wall Time

@github-actions
Copy link

Regression Detector Results

Run ID: 256c4f30-39e5-4d65-8ea0-4b0d330ab9da
Baseline: dbd7151
Comparison: a4ebb12
Total vector CPUs: 7

Explanation

A regression test is an integrated performance test for vector in a repeatable rig, with varying configuration for vector. What follows is a statistical summary of a brief vector run for each configuration across SHAs given above. The goal of these tests are to determine quickly if vector performance is changed and to what degree by a pull request.

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:

  1. The estimated |Δ mean %| ≥ 5.00%. This criterion intends to answer the question "Does the estimated change in mean optimization goal performance have a meaningful impact on your customers?". We assume that when |Δ mean %| < 5.00%, the impact on your customers is not meaningful. We also assume that a performance change in optimization goal is worth investigating whether it is an increase or decrease, so long as the magnitude of the change is sufficiently large.

  2. Zero is not in the 90.00% confidence interval "Δ mean % CI" about "Δ mean %". This statement is equivalent to saying that there is at least a 90.00% chance that the mean difference in optimization goal is not zero. This criterion intends to answer the question, "Is there a statistically significant difference in mean optimization goal performance?". It also means there is no more than a 10.00% chance this criterion reports a statistically significant difference when the true difference in mean optimization goal is zero -- a "false positive". We assume you are willing to accept a 10.00% chance of inaccurately detecting a change in performance when no true difference exists.

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.
experiment goal Δ mean % Δ mean % CI confidence
file_to_blackhole egress throughput +3.85 [-0.27, +7.96] 76.92%
otlp_http_to_blackhole ingress throughput +3.27 [+3.10, +3.44] 100.00%
socket_to_socket_blackhole ingress throughput +2.50 [+2.44, +2.55] 100.00%
syslog_loki ingress throughput +2.34 [+2.27, +2.42] 100.00%
syslog_humio_logs ingress throughput +2.09 [+2.03, +2.16] 100.00%
datadog_agent_remap_blackhole_acks ingress throughput +1.89 [+1.81, +1.98] 100.00%
otlp_grpc_to_blackhole ingress throughput +1.61 [+1.50, +1.73] 100.00%
http_text_to_http_json ingress throughput +1.34 [+1.27, +1.40] 100.00%
syslog_log2metric_humio_metrics ingress throughput +1.25 [+1.17, +1.33] 100.00%
syslog_log2metric_splunk_hec_metrics ingress throughput +1.25 [+1.18, +1.31] 100.00%
http_to_http_acks ingress throughput +1.04 [-0.18, +2.26] 72.38%
datadog_agent_remap_datadog_logs ingress throughput +0.87 [+0.74, +1.00] 100.00%
syslog_splunk_hec_logs ingress throughput +0.83 [+0.76, +0.89] 100.00%
datadog_agent_remap_blackhole ingress throughput +0.42 [+0.31, +0.52] 100.00%
http_to_http_json ingress throughput +0.24 [+0.19, +0.30] 100.00%
http_to_http_noack ingress throughput +0.03 [-0.03, +0.09] 46.16%
enterprise_http_to_http ingress throughput +0.01 [-0.01, +0.04] 47.95%
splunk_hec_indexer_ack_blackhole ingress throughput +0.00 [-0.04, +0.04] 4.80%
splunk_hec_to_splunk_hec_logs_acks ingress throughput +0.00 [-0.06, +0.07] 1.40%
fluent_elasticsearch ingress throughput +0.00 [-0.00, +0.00] 30.24%
splunk_hec_to_splunk_hec_logs_noack ingress throughput +0.00 [-0.04, +0.04] 0.95%
syslog_regex_logs2metric_ddmetrics ingress throughput -0.57 [-0.81, -0.33] 99.73%
datadog_agent_remap_datadog_logs_acks ingress throughput -1.61 [-1.70, -1.52] 100.00%
splunk_hec_route_s3 ingress throughput -2.26 [-2.39, -2.12] 100.00%

@StephenWakely
Copy link
Contributor Author

We managed to optimise the original PR so the regression is no longer significant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: sinks Anything related to the Vector's sinks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant