1Panel-dev / 1Panel-dev/1Panel
[Feature] Support Hardware Temperature Monitoring and Threshold Alerts (CPU / NVMe / Memory)
Open
@wanghe-fit2cloud is already working on this.
Since Jul 29, 2026.
type: feature-request
- Dominant language
- Go
- Stars
- 37k
- Forks
- 3.4k
- Avg merge
- 9h 16m
- Merged PRs (30d)
- 105
Description
1Panel Version
v2.2.3(已购买专业版)
Please describe your needs or suggestions for improvements
希望在主机监控中支持 Linux 硬件传感器温度的采集、展示和阈值告警,至少包括:
- CPU Package / Core 温度
- NVMe Composite 温度
- 内存 / 主板等可用 hwmon 传感器温度
使用场景是物理服务器运维。当前系统已能通过 lm-sensors 和 /sys/class/hwmon 正常读取这些数据,但 1Panel 主机监控目前只展示 CPU 使用率、内存、负载、磁盘 I/O 和网络;GPU 温度虽已支持,主机硬件温度仍无法展示或告警。
温度是物理机稳定性的重要指标,希望专业版能够覆盖这项监控能力。
Please describe the solution you suggest
建议基于 Linux hwmon / lm-sensors 采集温度数据:
- 自动发现可用传感器;没有对应硬件时隐藏该项。
- 在首页或主机监控页展示当前温度,并保留历史曲线。
- 支持按传感器配置阈值告警,例如 CPU、NVMe 温度过高时通过现有告警通道通知。
- 为避免不同硬件的传感器名称差异造成误解,展示传感器原始标签和设备名称。
Additional Information
本机可稳定读取 CPU、NVMe、内存等温度,说明硬件与操作系统侧没有采集障碍。
补充需求:分时间段的历史统计曲线
历史温度数据需要支持按不同时间范围切换和聚合展示,例如最近 1 小时、6 小时、24 小时、7 天、30 天及自定义时间范围;短时间范围展示原始或高频采样曲线,较长时间范围按合理粒度聚合(如分钟/小时均值、最高值)。
温度告警排查通常需要对照负载、CPU 使用率与风扇/磁盘状态,因此希望历史曲线支持缩放、悬浮查看具体时间点,并保留最高温度统计。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.