Prometheus系统下vmware_exporter配置

本文介绍了如何在Prometheus系统下通过Docker部署vmware_exporter来监控vmware vsphere集群。首先,由于编译问题选择了Docker方式。接着,配置了config.yml文件,并删除了vsphere_host。然后,编译了prometheus配置文件,编辑esx.yml以配合文件发现服务。在prometheus文件中添加了相应配置,并在Grafana中导入dashboard进行监控。目前只完成初步设置,后续还需解决告警和精细化监控等问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Prometheus系统下vmware_exporter配置

​ 为了方便管理设备,搞起了Prometheus。今天从vmware_exporter开始,监控起来我的vmware vsphere集群。

vmware_exporter由于编译问题不成功,选择使用docker方式执行。vmware_exporter

  1. 编辑配置文件config.yml,为了配置prometheus的文件发现服务,特将esx中的vsphere_hosthost删除。

    mkdir -p /data/vmware/config.yml
    vim /data/vmware/config.yml
    default:
       vsphere_host: "vcenter"
       vsphere_user: "user"
       vsphere_password: "password"
       ignore_ssl: False
       collect_only:
           vms: True
           vmguests: True
           datastores: True
           hosts: True
           snapshots: True
    
    esx:
       vsphere_user: 'root'
       vsphere_password: 'password'
       ignore_ssl: True
       collect_only:
           vms: True
           vmguests: True
           datastores: True
           hosts: True
           snapshots: True
    
  2. 执行vmware-exporter docker程序。

    docker r
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值