Overview

Full name
docker.io/prometheusnet/docker_exporter
Registry
docker.io
Namespace
prometheusnet
Repository
docker_exporter
Cached tags
21
Last synced
07/06/2026, 09:47 PM

Introduction

Prometheus 官方 Docker Engine 指标 Exporter,通过 docker.sock 采集容器与镜像运行时数据,通常以 DaemonSet 部署于 K8s 节点。

Details

docker_exporter 将 Docker Engine 的容器计数、镜像信息、事件等指标暴露为 Prometheus 格式,供 Grafana 与告警规则使用。运行时必须只读挂载宿主机 /var/run/docker.sock,具有较高权限,应限制部署范围并避免暴露 metrics 端口到公网。典型部署为 Kubernetes DaemonSet 或 systemd 管理的节点级 sidecar;单机 docker run 仅适合验证指标端点。

快速启动

docker run -d --name docker_exporter \
  -p 9417:9417 \
  -v /var/run/docker.sock:/var/run/docker.sock:ro \
  docker.io/prometheusnet/docker_exporter:latest

推荐实践

docker run -d --name docker_exporter \
  --restart unless-stopped \
  -p 127.0.0.1:9417:9417 \
  -v /var/run/docker.sock:/var/run/docker.sock:ro \
  docker.io/prometheusnet/docker_exporter:v0.0.16

核心参数说明

  • -v /var/run/docker.sock:/var/run/docker.sock:ro — 只读访问 Docker 引擎 API
  • -p 127.0.0.1:9417:9417 — 仅本机暴露 metrics,降低泄露风险
  • --restart unless-stopped — 节点监控组件自动恢复
  • 9417 — 默认 Prometheus scrape 端口
  • 安全提示 — docker.sock 只读仍可控容器,勿对不可信网络开放

Latest tags (20)

View all 21 tags →
TagArchPushed AtSizeDigestSyncWishAction
docker.io/prometheusnet/docker_exporter
:2020031403160189d598
linux/amd64
2020/03/14 11:1621.3 MBsha256:a5e668b2daaa
docker.io/prometheusnet/docker_exporter
:latest
linux/amd64
2020/03/14 11:1621.3 MBsha256:a5e668b2daaa
docker.io/prometheusnet/docker_exporter
:2020022507423154a46f
linux/amd64
2020/02/25 15:4321.3 MBsha256:5b136936cf48
docker.io/prometheusnet/docker_exporter
:20200225073950c6d013
linux/amd64
2020/02/25 15:4021.3 MBsha256:9741a9bfc0cd
docker.io/prometheusnet/docker_exporter
:cb
linux/amd64
2020/02/25 15:4021.3 MBsha256:9741a9bfc0cd
docker.io/prometheusnet/docker_exporter
:20200128143103adc3be
linux/amd64
2020/01/28 22:3221.2 MBsha256:f08f810d6caa
docker.io/prometheusnet/docker_exporter
:20200128135327adc3be
linux/amd64
2020/01/28 21:5421.2 MBsha256:7bbe6377a7bc
docker.io/prometheusnet/docker_exporter
:20200128134439afe424
linux/amd64
2020/01/28 21:4521.2 MBsha256:af725df0be67
docker.io/prometheusnet/docker_exporter
:20200128133940c1a188
linux/amd64
2020/01/28 21:4021.2 MBsha256:c9ce994c63e4
docker.io/prometheusnet/docker_exporter
:20200128132930e43296
linux/amd64
2020/01/28 21:3081.1 MBsha256:119f73875b57
docker.io/prometheusnet/docker_exporter
:20200122092443a6785a
linux/amd64
2020/01/22 17:2581.1 MBsha256:99542fef5a08
docker.io/prometheusnet/docker_exporter
:20200122075623ed4b1c
linux/amd64
2020/01/22 15:5781.1 MBsha256:375fe41eee95
docker.io/prometheusnet/docker_exporter
:2019122408553739fe0b
linux/amd64
2019/12/24 16:5681.1 MBsha256:aa8c8c358440
docker.io/prometheusnet/docker_exporter
:201912240843518fea1a
linux/amd64
2019/12/24 16:4481.1 MBsha256:18ebdb158033
docker.io/prometheusnet/docker_exporter
:20191224083421b94331
linux/amd64
2019/12/24 16:3581.1 MBsha256:0190c3b524e7
docker.io/prometheusnet/docker_exporter
:20191224075158b94331
linux/amd64
2019/12/24 15:5281.1 MBsha256:dc616cbf703d
docker.io/prometheusnet/docker_exporter
:20191224073840b309ca
linux/amd64
2019/12/24 15:3981.1 MBsha256:da30f04b7c0e
docker.io/prometheusnet/docker_exporter
:20191224071644b39417
linux/amd64
2019/12/24 15:1781.1 MBsha256:3bd610644ff1
docker.io/prometheusnet/docker_exporter
:20191223195020515dbd
linux/amd64
2019/12/24 03:5181.1 MBsha256:5680144ee9cc
docker.io/prometheusnet/docker_exporter
:20191223194945e9df5b
linux/amd64
2019/12/24 03:5081.1 MBsha256:30795dc34b9b