[FLINK-39079][Web UI] Add Top N Metrics Dashboard for performance diagnostics #27596
+925
−2
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 is the purpose of the change
FLINK-39079
This pull request adds a Top N metrics aggregation panel to the Flink Web UI Job Overview page to help users quickly identify performance bottlenecks. Currently, users need to manually navigate through multiple pages to check metrics for each TaskManager, operator, and subtask. The new Top N metrics panel displays Top N CPU Consumers, Top N Backpressure Operators, and Top N GC Intensive Tasks, providing immediate visibility into the most resource-intensive components.
Brief change log
TopNMetricsHeaders.java- REST API endpoint definition for/jobs/:jobid/metrics/top-nTopNMetricsParameters.java- API parameter support for GET requestsTopNMetricsResponseBody.java- Response body structure with three metric arraysTopNMetricsHandler.java- Handler that aggregates and returns top N metrics from all subtasksTopNMetricsHandlerinWebMonitorEndpoint.javatop-n-metrics.ts- TypeScript interfaces for Top N metricsTopNMetricsService.ts- Service to fetch Top N metrics from backendTopNMetricsComponent.ts- Angular component displaying top N metrics with color-coded severityTopNMetricsComponentinto Job Overview pageVerifying this change
This change was manually verified by running a standalone cluster, submitting jobs with backpressure, and verifying the Top N panel displays correct metrics.
Does this pull request potentially affect one of the following parts:
@Public(Evolving): (no)Documentation