Skip to content

Aggregate same-series counters in Analytics Engine sink - #198

Open
kanwarbajwa wants to merge 1 commit into
mainfrom
fix/ae-counter-aggregation
Open

Aggregate same-series counters in Analytics Engine sink#198
kanwarbajwa wants to merge 1 commit into
mainfrom
fix/ae-counter-aggregation

Conversation

@kanwarbajwa

Copy link
Copy Markdown
Contributor

Analytics Engine allows at most 25 writeDataPoint calls per Worker invocation. Per-event counters (one increment per upstream stream message) produced hundreds of observations in a single flush, so writes past the cap threw and were dropped (~10-15% undercount on ts_mcp_upstream_stream_messages_total, occasionally clipping tool metrics flushed in the same invocation).

Sum counter observations sharing a series (name + labels) into one data point before writing. Histograms and gauges keep one point per observation.

Analytics Engine allows at most 25 writeDataPoint calls per Worker
invocation. Per-event counters (one increment per upstream stream
message) produced hundreds of observations in a single flush, so writes
past the cap threw and were dropped (~10-15% undercount on
ts_mcp_upstream_stream_messages_total, occasionally clipping tool
metrics flushed in the same invocation).

Sum counter observations sharing a series (name + labels) into one data
point before writing. Histograms and gauges keep one point per
observation.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

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.

1 participant