feat(log): support new aggregation type in MI logs - #604
Merged
Conversation
k0nstantin
approved these changes
Jul 24, 2026
TE has introduced a new aggregation type in MI logs, which allows to store multiple values in one log message. These values are stored in a separate field called "values", and one message may provide either the old "value" field or the new "values" field. Update the JSON schema accordingly. Signed-off-by: Viacheslav Galaktionov <viacheslav.galaktionov@oktet.tech>
The auto-seqno X-axis derived its length from `result.entries.length`, which held for the old aggregation (one `single` entry per point) but not for the new `series` aggregation, where all points live inside a single entry's `values[]`. The axis then collapsed to a `[0, 0]` range and ECharts clipped the whole series, so `series`-format charts rendered blank and raised a spurious X/Y length-mismatch error. Compute the axis length from the number of plotted `single`/`series` values (expanding `values[]`) so it matches what `createSeries` emits. Filtering out statistic entries (mean/min/max) also fixes the same mismatch for the old format. Apply the same filter to the non-auto-seqno X-axis data so statistic values no longer leak onto the axis. Signed-off-by: Danil Kostromin <danil.kostromin@icloud.com>
okt-limonikas
force-pushed
the
fixed_series_aggr
branch
from
July 24, 2026 13:11
1816aa7 to
9152b0a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR supersedes #537 and fixes issues with it and regenerates json log schema