Skip to content

Origins on director#1990

Merged
CannonLock merged 7 commits intoPelicanPlatform:mainfrom
CannonLock:origins-on-director
Apr 8, 2025
Merged

Origins on director#1990
CannonLock merged 7 commits intoPelicanPlatform:mainfrom
CannonLock:origins-on-director

Conversation

@CannonLock
Copy link
Contributor

  • Add Origin metric page to the director
  • Add click through interactions on data points to allow investigation to outlier servers

@CannonLock
Copy link
Contributor Author

Screen.Recording.2025-02-05.at.2.08.43.PM.mov

@CannonLock CannonLock added the enhancement New feature or request label Feb 5, 2025
@CannonLock CannonLock requested a review from h2zh February 7, 2025 20:52
@CannonLock CannonLock force-pushed the origins-on-director branch from cea97a7 to ecaead6 Compare March 24, 2025 17:36
@h2zh
Copy link
Contributor

h2zh commented Mar 26, 2025

To ensure the failed tests are not due to outdated code, could you rebase this PR against the latest main when you have a moment?

@CannonLock
Copy link
Contributor Author

@h2zh I had the same thought and rebased this onto a version from 2 days ago. Not sure what is going on with the tests.

@CannonLock
Copy link
Contributor Author

@h2zh Looks like there are issues with the website build I will address, my bad

@CannonLock CannonLock closed this Mar 26, 2025
@CannonLock
Copy link
Contributor Author

Accidentally closed with comment

@CannonLock CannonLock reopened this Mar 26, 2025
@h2zh h2zh assigned CannonLock and unassigned h2zh Mar 31, 2025
- Add Origin metric page to the director
- Add click through interactions on data points to allow investigation to outlier servers
- Add the version to the card title
- Add a button to go to the servers metrics
@CannonLock CannonLock force-pushed the origins-on-director branch from ecaead6 to 88bc244 Compare April 1, 2025 17:53
@CannonLock CannonLock linked an issue Apr 1, 2025 that may be closed by this pull request
@CannonLock CannonLock added this to the v7.16 milestone Apr 1, 2025
- Fix the headers to they are sticky on the tables
- Add the by project metrics table
- Add boxplots for the transfer bytes and operations to see top caches
@CannonLock CannonLock force-pushed the origins-on-director branch from c317fc1 to 39615a5 Compare April 1, 2025 19:43
@CannonLock CannonLock requested a review from Copilot April 1, 2025 19:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces pages for displaying origin metrics and implements click-through interactions for investigating outlier servers in both the director and cache views. Key changes include:

  • Addition of the OriginMetricPage and CacheMetricPage components for metrics display.
  • Updates to various graph and table components to support clickable links and improved UI styling.
  • Removal of legacy components (e.g., ServerTable and DataTable) and consolidation of metric display logic.

Reviewed Changes

Copilot reviewed 27 out of 27 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
web_ui/frontend/components/graphs/OriginMetricPage.tsx New component for displaying origin metrics with several metric graphs and tables.
web_ui/frontend/components/graphs/GraphContext.tsx Updated URL parameter handling in state updates.
web_ui/frontend/components/graphs/CacheMetricPage.tsx New component for cache metrics (with similar structure to OriginMetricPage).
web_ui/frontend/components/StyledHeadTableCell.tsx Added styled table header cell for consistent UI.
web_ui/frontend/components/ServerTable.tsx Removed legacy server table component.
web_ui/frontend/app/origin/metrics/page.tsx Updated app routing to use the new OriginMetricPage.
web_ui/frontend/app/director/metrics/page.tsx Enhanced director metrics page with additional metrics and a project table.
web_ui/frontend/app/director/metrics/origin/page.tsx Added a dedicated origin metrics page for the director view.
web_ui/frontend/app/director/metrics/components/TransferBarGraph.tsx Adjusted SWR key and added a console log for debugging purposes.
web_ui/frontend/app/director/metrics/components/StorageTable.tsx Updated table component to include navigation links and styled header cells.
web_ui/frontend/app/director/metrics/components/MetricBoxPlot.tsx Enhanced click interactions with router integration and server type lookup.
web_ui/frontend/app/cache/metrics/page.tsx Modified cache metrics page routing (note: incorrect import detected).
web_ui/frontend/app/director/components/DirectorCard.tsx Updated card component to display version details and provide admin links.
Comments suppressed due to low confidence (2)

web_ui/frontend/components/graphs/OriginMetricPage.tsx:139

  • The title for the BigBytesMetric with type 'readv' is missing a closing backtick, which could lead to rendering issues.
title={'Bytes `readv}

web_ui/frontend/components/graphs/CacheMetricPage.tsx:139

  • The title for the BigBytesMetric with type 'readv' is missing a closing backtick; please correct it to ensure proper display.
title={'Bytes `readv}

CannonLock and others added 2 commits April 1, 2025 15:22
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@h2zh h2zh left a comment

Choose a reason for hiding this comment

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

This review's emphasis is on the Prometheus. I also skim through the code changes in /app, while the live webpage interactive test is impossible in dev environment for this feature.

- Make buildMetric louder when issues arise
- Optimize buildMetric to leave out cruft when building empty arg string
- Delete unused components
@CannonLock CannonLock requested a review from h2zh April 2, 2025 20:38
Copy link
Contributor

@h2zh h2zh left a comment

Choose a reason for hiding this comment

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

LGTM

@CannonLock CannonLock merged commit 016f503 into PelicanPlatform:main Apr 8, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Origin and Cache Metric pages to the Cache

3 participants