feat(observability): metrics end-to-end (gateway + UI panel)#5380
Draft
Ma77Ball wants to merge 140 commits into
Draft
feat(observability): metrics end-to-end (gateway + UI panel)#5380Ma77Ball wants to merge 140 commits into
Ma77Ball wants to merge 140 commits into
Conversation
…, SDK bootstrap (default-off) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…s panel Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…nt scope, health, routing) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ca/eBPF profiling Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…tracing primitives Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…UI metrics panel (ECharts) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5380 +/- ##
============================================
+ Coverage 53.86% 55.33% +1.46%
- Complexity 2756 3020 +264
============================================
Files 1099 1147 +48
Lines 42541 44898 +2357
Branches 4577 4985 +408
============================================
+ Hits 22916 24845 +1929
- Misses 18290 18570 +280
- Partials 1335 1483 +148
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…e and shell (pr4)
…e and shell (pr4)
…teway and panel (pr6)
- bin/observability/docker-compose.yml: collector + parca-agent stack - bin/single-node/docker-compose.yml: mount the otel-collector and parca configs and run the parca-agent sidecar Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- dtos: drop the per-signal Signal/maxWindowSeconds enum and the upper bound on TimeWindow.validate -- DB-backed counts have no retention limit and the backends just return what they retain; BadTimeWindow becomes a plain value (only empty/inverted windows are rejected) - DtoValidationSpec: cover the new unbounded-window behavior - UI shell: observability route + dashboard navigation entry Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ements - gateway LogsResource: resolve log user ids to display names via UserDao, and pull id-field autofill values from VictoriaLogs /field_values (those ids are record fields, not stream labels); adapt to the unbounded TimeWindow.validate signature - builders: fix the body filter to the correct `_msg:"..."` phrase form (contains_str is not valid LogsQL) - ResponseParsers: parseFieldValueLongs for the autofill values - dtos/observability.types: LogSourcesResponse.userNames - logs panel: user-name dropdown + 7-day default window Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ilter - WorkflowRunCounter: exact COUNT over workflow_executions for totalRuns (the sampled counter only estimates); wired into GatewayContext - dtos/MetricsResource: NamedMetric.instant/dbBacked; totalRuns answered from the DB as one window-wide scalar; optional userId filter; metrics validation adapts to the unbounded window; aggregate-window MetricsQL - observability.service: drop the step upper bound (panel auto-relaxes for large windows), validate userId - metrics panel: user filter + instant hero stat + loading spinner and persisted filter options Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Automated Reviewer SuggestionsBased on the
|
… obs/pr1/foundations
…o obs/pr2/backend-emit
…obs/pr3/deployment
… obs/pr2/backend-emit
…o obs/pr3/deployment
…obs/pr4/gateway-core
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.
What changes were proposed in this PR?
Workflow metrics through the gateway plus an ECharts-based UI panel.
Backend:
parseMetrics.MetricsResourceserving a closed allowlist of named queries (throughput, outcome rates, and duration percentiles), enforced on both the gateway and the client.Frontend:
Any related issues, documentation, or discussions?
Closes: #5372
Part of #4070. Stacked on #5379.
How was this PR tested?
sbt scalafmtCheckAllpasses.prettier-eslintandeslintpass.Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.8 in compliance with ASF