[FLINK-Web][Web Dashboard] Add Top N Metrics Dashboard feature#27771
Closed
featzhang wants to merge 1 commit intoapache:masterfrom
Closed
[FLINK-Web][Web Dashboard] Add Top N Metrics Dashboard feature#27771featzhang wants to merge 1 commit intoapache:masterfrom
featzhang wants to merge 1 commit intoapache:masterfrom
Conversation
This commit introduces a Top N Metrics Dashboard to the Flink Web UI, providing visibility into resource-intensive components: - Top N CPU Consumers: Identify tasks with highest CPU usage - Top N Backpressure Operators: Highlight operators experiencing backpressure - Top N GC Intensive Tasks: Show tasks with highest GC overhead The implementation includes: - REST API endpoint: /jobs/:jobid/metrics/top-n - Response body with three metric categories - Angular components for displaying metrics - Demo page showcasing the feature This feature helps operators quickly identify performance bottlenecks and optimize job execution.
Collaborator
This was referenced Mar 15, 2026
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.
Purpose
This PR adds a Top N Metrics Dashboard to the Flink Web UI, providing operators with enhanced visibility into resource-intensive components in their Flink jobs. The dashboard displays three critical metric categories in real-time:
This feature enables faster identification of performance bottlenecks and helps operators optimize job execution by quickly locating problematic components.
Change log
Backend Changes:
TopNMetricsHandler.java- REST API handler for Top N metrics aggregationTopNMetricsHeaders.java- REST endpoint definition and response type specificationTopNMetricsMessageParameters.java- Request parameter definitionsTopNMetricsResponseBody.java- Response body structure with three inner classesFrontend Changes:
TopNMetricsService.ts- Service to fetch Top N metrics from backendtopn-metrics.ts- TypeScript interface definitionsTopNMetricsComponent- Angular component with HTML template and Less stylesOverviewDemoComponent- Demo page showcasing the featureNew REST API:
GET /jobs/:jobid/metrics/top-n- Returns Top N metrics for a specified jobVerifying
mvn clean install -DskipTestscd flink-runtime-web/web-dashboard && npm install && npm run build/overview-demoto see the Top N Metrics Dashboard/jobs/{jobId}/metrics/top-nto verify API returns valid dataImpact
Scope:
Performance:
Compatibility:
Documentation
Documentation updates needed for: