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

feat(mqtt sink): expose retain config flag #21291

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

miquelruiz
Copy link
Contributor

Resolves #21278

Expose a boolean config flag named retain that gets passed to the MQTT client's publish function to tell the server to retain the messages.

@miquelruiz miquelruiz requested review from a team as code owners September 13, 2024 05:02
@bits-bot
Copy link

bits-bot commented Sep 13, 2024

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added domain: sinks Anything related to the Vector's sinks domain: external docs Anything related to Vector's external, public documentation labels Sep 13, 2024
Copy link
Member

@jszwedko jszwedko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks @miquelruiz !

I think the only thing this is missing is a changelog entry. Could you add one? See https://github.com/vectordotdev/vector/blob/master/changelog.d/README.md

@miquelruiz
Copy link
Contributor Author

Hi! I added the changelog entry. Any chance to get this reviewed? Thanks!

Copy link
Member

@jszwedko jszwedko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @miquelruiz !

auto-merge was automatically disabled September 20, 2024 21:11

Head branch was pushed to by a user without write access

@jszwedko jszwedko added this pull request to the merge queue Sep 20, 2024
Copy link

Regression Detector Results

Run ID: a7b8da7d-a899-4c93-8b66-275300aa73a1 Metrics dashboard

Baseline: dcdb72d
Comparison: f99e052

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

No significant changes in experiment optimization goals

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

There were no significant changes in experiment optimization goals at this confidence level and effect size tolerance.

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI links
file_to_blackhole egress throughput +28.63 [+20.50, +36.76]

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI links
file_to_blackhole egress throughput +28.63 [+20.50, +36.76]
syslog_splunk_hec_logs ingress throughput +2.38 [+2.27, +2.49]
syslog_log2metric_humio_metrics ingress throughput +1.92 [+1.81, +2.04]
syslog_loki ingress throughput +1.68 [+1.62, +1.73]
syslog_log2metric_tag_cardinality_limit_blackhole ingress throughput +0.85 [+0.74, +0.95]
syslog_log2metric_splunk_hec_metrics ingress throughput +0.78 [+0.64, +0.93]
socket_to_socket_blackhole ingress throughput +0.64 [+0.54, +0.75]
datadog_agent_remap_blackhole ingress throughput +0.63 [+0.54, +0.71]
http_to_http_acks ingress throughput +0.54 [-0.68, +1.76]
datadog_agent_remap_blackhole_acks ingress throughput +0.18 [+0.07, +0.29]
http_to_http_noack ingress throughput +0.16 [+0.08, +0.24]
otlp_http_to_blackhole ingress throughput +0.08 [-0.05, +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.08, +0.11]
http_to_s3 ingress throughput +0.01 [-0.26, +0.28]
splunk_hec_indexer_ack_blackhole ingress throughput +0.01 [-0.07, +0.08]
http_text_to_http_json ingress throughput +0.00 [-0.13, +0.13]
splunk_hec_to_splunk_hec_logs_acks ingress throughput -0.00 [-0.11, +0.11]
otlp_grpc_to_blackhole ingress throughput -0.05 [-0.16, +0.06]
datadog_agent_remap_datadog_logs_acks ingress throughput -0.06 [-0.26, +0.14]
datadog_agent_remap_datadog_logs ingress throughput -0.52 [-0.75, -0.29]
fluent_elasticsearch ingress throughput -0.71 [-1.20, -0.22]
http_elasticsearch ingress throughput -0.76 [-0.89, -0.62]
syslog_regex_logs2metric_ddmetrics ingress throughput -1.02 [-1.18, -0.85]
syslog_humio_logs ingress throughput -1.66 [-1.77, -1.56]
splunk_hec_route_s3 ingress throughput -1.96 [-2.28, -1.64]

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:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. 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.

  3. Its configuration does not mark it "erratic".

Merged via the queue into vectordotdev:master with commit f99e052 Sep 20, 2024
51 checks passed
AndrooTheChen pushed a commit to discord/vector that referenced this pull request Sep 23, 2024
@miquelruiz miquelruiz deleted the mruiz/mqtt-sink-retain branch October 9, 2024 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: external docs Anything related to Vector's external, public documentation domain: sinks Anything related to the Vector's sinks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make MQTT sink "retain" flag configurable
4 participants