
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
windows_exporter是Prometheus社区提供的Windows机器指标导出器,用于收集Windows系统及组件的性能指标,并以Prometheus兼容格式暴露,便于集成到Prometheus监控系统中实现对Windows环境的全面监控。
支持多种Windows系统组件和服务的指标收集,以下是主要收集器列表:
| 名称 | 描述 | 默认启用 |
|---|---|---|
| ad | Active Directory域服务 | |
| adcs | Active Directory证书服务 | |
| adfs | Active Directory联合服务 | |
| cache | 缓存指标 | |
| cpu | CPU使用率 | &#***; |
| cpu_info | CPU信息 | |
| container | 容器指标 | |
| diskdrive | 磁盘驱动器指标 | |
| dfsr | DFSR指标 | |
| dhcp | DHCP服务器 | |
| dns | DNS服务器 | |
| exchange | Exchange指标 | |
| filetime | FileTime指标 | |
| fsrmquota | Microsoft文件服务器资源管理器(FSRM)配额收集器 | |
| gpu | GPU指标 | |
| hyperv | Hyper-V主机 | |
| iis | IIS站点和应用程序 | |
| license | Windows许可证状态 | |
| logical_disk | 逻辑磁盘、磁盘I/O | &#***; |
| memory | 内存使用指标 | &#***; |
| mscluster | MSCluster指标 | |
| msmq | MSMQ队列 | |
| mssql | SQL Server性能对象指标 | |
| netframework | .NET Framework指标 | |
| net | 网络接口I/O | &#***; |
| os | 操作系统指标(内存、进程、用户) | &#***; |
| pagefile | 页面文件指标 | |
| performancecounter | 自定义性能计数器指标 | |
| physical_disk | 物理磁盘指标 | &#***; |
| printer | 打印机指标 | |
| process | 进程级指标 | |
| remote_fx | RemoteFX协议(RDP)指标 | |
| scheduled_task | 计划任务指标 | |
| service | 服务状态指标 | &#***; |
| smb | SMB服务器 | |
| smbclient | SMB客户端 | |
| smtp | IIS SMTP服务器 | |
| system | 系统调用 | &#***; |
| tcp | TCP连接 | |
| terminal_services | 终端服务(RDS) | |
| textfile | 从文本文件读取Prometheus指标 | |
| time | Windows时间服务 | |
| udp | UDP连接 | |
| update | Windows更新服务 | |
| vmware | Vmware来宾代理安装的性能计数器 |
镜像仓库
docker.io/prometheuscommunity/windows-exporterghcr.io/prometheus-community/windows-exporterquay.io/prometheuscommunity/windows-exporter标签说明
0.24.0)获取特定版本latest标签指向最新发布版本基本运行命令
bashdocker run -d -p 9182:9182 --name windows-exporter docker.xuanyuan.run/prometheuscommunity/windows-exporter
| 标志 | 描述 | 默认值 |
|---|---|---|
--web.listen-address | 导出器监听地址(主机:端口) | :9182 |
--telemetry.path | 暴露指标的URL路径 | /metrics |
--collectors.enabled | 启用的收集器列表,逗号分隔。使用[defaults]作为默认收集器占位符 | [defaults] |
--scrape.timeout-margin | 从客户端超时时间中减去的秒数,用于应对负载或开销 | 0.5 |
--web.config.file | https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md%EF%BC%8C%E7%94%A8%E4%BA%8E%E8%AE%BE%E7%BD%AETLS%E5%92%8C%E8%AE%A4%E8%AF%81 | None |
--config.file | 配置文件路径 | None |
--log.file | 日志输出位置,可选值:stdout, stderr, eventlog, <日志文件路径>。注意:MSI安装会默认设置为eventlog | stderr |
默认情况下,导出器暴露所有启用收集器的指标。高级用法中,可通过collect[]参数过滤指标,该参数可多次使用。在Prometheus配置的抓取配置中使用:
yamlscrape_configs: - job_name: 'windows' static_configs: - targets: ['windows-exporter:9182'] params: collect[]: - cpu - memory
通过--config.file指定YAML配置文件,格式示例:
yamlcollectors: enabled: cpu,net,service # 启用的收集器 collector: service: include: windows_exporter # 服务收集器包含的服务名 log: level: warn # 日志级别
配置文件与CLI标志可混合使用,CLI标志优先级高于配置文件。
注意:Windows Server 2012 R2及更早版本存在已知兼容性问题
/metrics: 以Prometheus文本格式暴露指标/health: 导出器运行时返回200 OK/debug/pprof/: 暴露pprof调试端点,需设置--debug.enabledMIT
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务