镜像概览
- 完整引用
docker.io/prometheuscommunity/smartctl-exporter- Registry
- docker.io
- 命名空间
- prometheuscommunity
- 仓库
- smartctl-exporter
- 已缓存 Tag 数
- 11
- 最近同步
- 07/06/2026, 04:57 PM
- 相关主题
简介
Prometheus 社区维护的 smartctl 磁盘健康 Exporter,读取 SMART 指标供 node 级监控采集,适合裸金属与 K8s DaemonSet 部署。
详细介绍
prometheuscommunity/smartctl-exporter 将 smartctl 输出的温度、重映射扇区、通电时间等 SMART 属性转为 Prometheus 指标,供 Alertmanager 规则检测磁盘亚健康。Exporter 需访问物理盘或块设备,通常以 DaemonSet 跑在每台宿主机,与 node-exporter 互补而非替代。社区版相对旧版 prometheus/smartctl-exporter 维护更活跃;生产应固定 tag 并限制 scrape 来源,避免将 /dev 全量暴露给非监控网络。
快速启动
docker run -d --name smartctl-exporter \
-p 9633:9633 \
--device=/dev/sda \
docker.io/prometheuscommunity/smartctl-exporter:latest
推荐实践
docker run -d --name smartctl-exporter \
--restart unless-stopped \
-p 9633:9633 \
--device=/dev/sda \
--device=/dev/sdb \
-e SMARTCTL_DEVICE=/dev/sda \
docker.io/prometheuscommunity/smartctl-exporter:v0.12.0
核心参数说明
-p 9633:9633— Prometheus metrics HTTP 端口--device=/dev/sda— 允许 exporter 读取对应块设备 SMART-e SMARTCTL_DEVICE— 指定默认扫描设备--restart unless-stopped— 宿主机重启后监控不中断- 固定 tag — 与 Prometheus scrape 配置版本对齐
- 权限 — 读盘需 CAP_SYS_RAWIO 或等价特权
Kubernetes
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: smartctl-exporter
spec:
selector:
matchLabels:
app: smartctl-exporter
template:
metadata:
labels:
app: smartctl-exporter
spec:
hostNetwork: true
containers:
- name: exporter
image: docker.io/prometheuscommunity/smartctl-exporter:v0.12.0
ports:
- containerPort: 9633
securityContext:
privileged: true
volumeMounts:
- name: dev
mountPath: /dev
volumes:
- name: dev
hostPath:
path: /dev
---
apiVersion: v1
kind: Service
metadata:
name: smartctl-exporter
spec:
selector:
app: smartctl-exporter
ports:
- port: 9633
targetPort: 9633
DaemonSet 需 privileged 访问 host /dev;Prometheus 经 node IP 或 ServiceMonitor 抓取,按节点标签区分告警。
最新 Tag(20 条)
查看全部 11 个 Tag →| Tag | 架构 | 推送时间 | 大小 | Digest | 同步 | 期望 | 操作 |
|---|---|---|---|---|---|---|---|
docker.io/prometheuscommunity/smartctl-exporter :master | linux/amd64 | 2026/07/03 23:21 | 17.2 MB | sha256:269d71ab57e5… | |||
docker.io/prometheuscommunity/smartctl-exporter :latest | linux/amd64 | 2025/04/22 19:47 | 16.2 MB | sha256:a13840e6df4e… | |||
docker.io/prometheuscommunity/smartctl-exporter :v0.14.0 | linux/amd64 | 2025/04/22 19:47 | 16.2 MB | sha256:a13840e6df4e… | |||
docker.io/prometheuscommunity/smartctl-exporter :v0.13.0 | linux/amd64 | 2024/12/20 14:39 | 16.1 MB | sha256:1fc7f4a40ab0… | |||
docker.io/prometheuscommunity/smartctl-exporter :v0.12.0 | linux/amd64 | 2024/03/04 02:05 | 14.7 MB | sha256:479e2cfa0e5c… | |||
docker.io/prometheuscommunity/smartctl-exporter :v0.11.0 | linux/amd64 | 2023/08/27 20:55 | 14.0 MB | sha256:f23634fa0c44… | |||
docker.io/prometheuscommunity/smartctl-exporter :v0.10.0 | linux/amd64 | 2023/08/12 18:05 | 14.0 MB | sha256:58e66fb18959… | |||
docker.io/prometheuscommunity/smartctl-exporter :v0.9.1 | linux/amd64 | 2022/11/07 05:54 | 13.7 MB | sha256:515a905fd2e5… | |||
docker.io/prometheuscommunity/smartctl-exporter :v0.9.0 | linux/amd64 | 2022/10/21 00:27 | 13.4 MB | sha256:3978470f2590… | |||
docker.io/prometheuscommunity/smartctl-exporter :v0.8.0 | linux/amd64 | 2022/10/06 00:35 | 13.5 MB | sha256:dcccf484901d… | |||
docker.io/prometheuscommunity/smartctl-exporter :v0.7.0 | linux/amd64linux/arm64linux/arm | 2022/08/05 09:58 | 9.2 MB | sha256:6cc0e6f1bb27… |