Skip to content

Conversation

@agatha197
Copy link
Contributor

@agatha197 agatha197 commented Sep 26, 2025

Resolves #3951 (FR-1240)

Add Agent Statistics to Admin Dashboard

This PR adds a new Agent Statistics feature to the Admin Dashboard, providing system administrators with a comprehensive view of resource utilization across all agents in the system. The new component displays total used and free resources for CPU, memory, and accelerators.

Key changes:

  • Added new AgentStats component that shows system-wide resource usage
  • Updated GraphQL schema with new agentStats query and related types
  • Refactored resource statistics components to use consistent terminology (used/free instead of using/remaining)
  • Updated all resource panel descriptions in i18n files to reflect the new terminology
  • Added feature detection for agent-stats capability (requires manager version 25.15.0+)

The PR also includes:

  • Schema updates for artifact registry management and delegation features
  • Renamed storage namespace-related mutations for better clarity
  • Fixed z-index issues in the main layout components

image.png

image.png

Checklist:

  • Updated i18n strings in all supported languages
  • Added feature detection for backward compatibility
  • Minimum required manager version: 25.15.0 (for agent-stats feature)
  • Specific setting for review: Admin access required to view agent statistics

@github-actions github-actions bot added area:lib Library and SDK related issue. area:ux UI / UX issue. area:i18n Localization size:XL 500~ LoC labels Sep 26, 2025
Copy link
Contributor Author

agatha197 commented Sep 26, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch 2 times, most recently from 760cf9a to b0c6d8e Compare September 26, 2025 06:41
@github-actions
Copy link

github-actions bot commented Sep 26, 2025

Coverage report for ./react

Caution

An unexpected error occurred. For more details, check console

Error: The process '/usr/bin/git' failed with exit code 128
St.
Category Percentage Covered / Total
🔴 Statements 4.65% 532/11433
🔴 Branches 3.76% 302/8024
🔴 Functions 2.88% 102/3544
🔴 Lines 4.6% 514/11173

Test suite run success

121 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from f3e361b

@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch 3 times, most recently from 1c929e5 to 293d794 Compare September 29, 2025 04:24
@agatha197 agatha197 changed the base branch from main to graphite-base/4344 September 29, 2025 13:53
@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch from 293d794 to 4f27955 Compare September 29, 2025 13:53
@github-actions github-actions bot added size:L 100~500 LoC and removed size:XL 500~ LoC labels Sep 29, 2025
@agatha197 agatha197 changed the base branch from graphite-base/4344 to feat_FR-1531_/add-active-agent-list-item September 29, 2025 13:53
@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch from 4f27955 to 6198d6b Compare September 29, 2025 13:59
@agatha197 agatha197 force-pushed the feat_FR-1531_/add-active-agent-list-item branch 2 times, most recently from 3dc3b79 to f70c2d9 Compare September 29, 2025 14:03
@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch 2 times, most recently from 94064b3 to 1df689c Compare September 30, 2025 06:48
@agatha197 agatha197 force-pushed the feat_FR-1531_/add-active-agent-list-item branch from f70c2d9 to 412ed7b Compare September 30, 2025 06:48
@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch from 1df689c to 6cf09e2 Compare September 30, 2025 06:57
@agatha197 agatha197 force-pushed the feat_FR-1531_/add-active-agent-list-item branch from 412ed7b to 753ed25 Compare September 30, 2025 06:57
@agatha197 agatha197 requested a review from ironAiken2 October 20, 2025 02:39
@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch 2 times, most recently from c5b0ebc to 89dbeef Compare October 20, 2025 08:39
@agatha197 agatha197 requested a review from nowgnuesLee October 20, 2025 08:42
@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch from 89dbeef to 1a6808a Compare October 20, 2025 08:56
@agatha197 agatha197 force-pushed the feat_FR-1531_/add-active-agent-list-item branch from 54a3845 to 22f13d2 Compare October 20, 2025 08:56
@agatha197 agatha197 requested a review from nowgnuesLee October 21, 2025 04:31
@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch from 1a6808a to 8ec298f Compare October 21, 2025 04:31
Copy link
Contributor

@nowgnuesLee nowgnuesLee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got a type error in the ConfigurableResourceCard component. could you check it out?

Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch from 8ec298f to 43826b2 Compare October 21, 2025 06:01
@agatha197 agatha197 requested a review from nowgnuesLee October 21, 2025 06:03
@agatha197 agatha197 marked this pull request as draft October 21, 2025 06:05
@agatha197 agatha197 force-pushed the feat_FR-1240_/admin-dashboard branch from 43826b2 to e59548e Compare October 21, 2025 06:13
@agatha197 agatha197 marked this pull request as ready for review October 21, 2025 06:13
Copy link
Contributor

@nowgnuesLee nowgnuesLee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@graphite-app
Copy link

graphite-app bot commented Oct 22, 2025

Merge activity

…ies (#4344)

Resolves #3951 ([FR-1240](https://lablup.atlassian.net/browse/FR-1240))

# Add Agent Statistics to Admin Dashboard

This PR adds a new Agent Statistics feature to the Admin Dashboard, providing system administrators with a comprehensive view of resource utilization across all agents in the system. The new component displays total used and free resources for CPU, memory, and accelerators.

Key changes:
- Added new `AgentStats` component that shows system-wide resource usage
- Updated GraphQL schema with new `agentStats` query and related types
- Refactored resource statistics components to use consistent terminology (`used`/`free` instead of `using`/`remaining`)
- Updated all resource panel descriptions in i18n files to reflect the new terminology
- Added feature detection for `agent-stats` capability (requires manager version 25.15.0+)

The PR also includes:
- Schema updates for artifact registry management and delegation features
- Renamed storage namespace-related mutations for better clarity
- Fixed z-index issues in the main layout components

![image.png](https://app.graphite.dev/user-attachments/assets/c4633512-6ac0-4db2-977f-cc8e03220b86.png)

![image.png](https://app.graphite.dev/user-attachments/assets/7186c053-193f-4baf-835c-03e995ceb563.png)

## Checklist:

- [x] Updated i18n strings in all supported languages
- [x] Added feature detection for backward compatibility
- [x] Minimum required manager version: 25.15.0 (for agent-stats feature)
- [x] Specific setting for review: Admin access required to view agent statistics

[FR-1240]: https://lablup.atlassian.net/browse/FR-1240?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
@graphite-app graphite-app bot force-pushed the feat_FR-1531_/add-active-agent-list-item branch from 22f13d2 to 7119a62 Compare October 22, 2025 08:55
@graphite-app graphite-app bot force-pushed the feat_FR-1240_/admin-dashboard branch from e59548e to f3e361b Compare October 22, 2025 08:56
Base automatically changed from feat_FR-1531_/add-active-agent-list-item to main October 22, 2025 08:57
@graphite-app graphite-app bot merged commit f3e361b into main Oct 22, 2025
7 of 8 checks passed
@graphite-app graphite-app bot deleted the feat_FR-1240_/admin-dashboard branch October 22, 2025 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:i18n Localization area:lib Library and SDK related issue. area:ux UI / UX issue. size:XL 500~ LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Admin Dashboard Page

4 participants