feat(monitor): add monitor data export - #13875
Open
CNCoreSteb wants to merge 1 commit into
Open
CNCoreSteb wants to merge 1 commit into
CNCoreSteb wants to merge 1 commit into
Conversation
- new export tab between monitor and settings with time range, metric, device/interface/gpu selection and format choice - files are generated in the browser from existing monitor apis; no new backend endpoints - csv with utf-8 bom, escaping and formula sanitization; multiple metrics are zipped; xlsx uses one worksheet per metric with real date cells and row-limit warnings; json emits flat row objects - share downloadBlob in utils/file with delayed url revocation - use the 60s monitor timeout and node header for gpu queries
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 this PR does / why we need it?
Users currently cannot extract monitor data from the panel. This PR adds an export tab next to the monitor settings, allowing users to export selected metrics and time ranges to CSV, JSON or XLSX files — entirely in the browser, reusing the existing monitor APIs with no new backend endpoints.
Depends on #13874 (monitor search treats an empty io/network value as "all devices"; the "each device" export option relies on it).
Summary of your change
allaggregate rows.loadGPUMonitornow uses the 60s monitor timeout and supports node routing headers.downloadBlobhelper inutils/file.ts(delayed object-URL revocation).Please indicate you've done the following: