Repository navigation
Serve a read-only dashboard screen over the local network - #13
Open
cnLuca0702 wants to merge 1 commit into
Open
cnLuca0702 wants to merge 1 commit into
cnLuca0702 wants to merge 1 commit into
Conversation
Settings gains a Dashboard screen page: when enabled, a built-in HTTP server (NWListener, zero dependencies) publishes /, /metrics and /healthz. Any device on the LAN can open the address for a live view of CPU, memory, network, disk, load, battery and top processes with sparklines. The page adapts to landscape, portrait and phone layouts and keeps retrying through network drops.
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.
概述
给 OpenStats 增加「监控大屏」:开启后在局域网提供只读网页仪表盘,同一网络里的平板、旧电脑、电视用浏览器打开
http://<Mac 的 IP>:8790/即可实时查看这台 Mac 的监控,适合接一块屏幕当监控墙。功能
/页面、/metricsJSON、/healthz存活);数据不出局域网实现说明
DashboardServer.swift(HTTP 传输)、DashboardController.swift(快照组装与生命周期)、DashboardPage.swift(页面常量)、DashboardSettings.swift(设置页);其余为在各注册点的少量增量改动(PanelTab / AppSettings / SettingsDocument / AppModel / MainWindowView / Translations)测试
/metrics快照映射(CPU / 内存 / 磁盘的归一化与走势历史)、空库健壮性