Skip to content

perf: batch WriteMetrics into single InfluxDB write call#5789

Open
sagiselag wants to merge 1 commit into
SAP:masterfrom
sagiselag:patch-2
Open

perf: batch WriteMetrics into single InfluxDB write call#5789
sagiselag wants to merge 1 commit into
SAP:masterfrom
sagiselag:patch-2

Conversation

@sagiselag

Copy link
Copy Markdown

Changes

Batch WriteMetrics() into a single InfluxDB write call instead of sequential per-measurement HTTP requests.

Before: N measurements × 1 blocking WritePoint() call each — sequential HTTP round-trips.

After: All points collected into a slice, sent via a single variadic WritePoint(ctx, points...) call. Total: 1 HTTP request regardless of measurement count.

AI Disclosure

This contribution was developed with assistance from an AI coding tool (Claude/Anthropic). The output has been reviewed for correctness, does not include third-party copyrighted materials, and complies with the project's Apache 2.0 license.

@sagiselag sagiselag requested a review from a team as a code owner May 12, 2026 15:56
@cla-assistant

cla-assistant Bot commented May 12, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants