Prometheus系统下vmware_exporter配置
为了方便管理设备,搞起了Prometheus。今天从vmware_exporter开始,监控起来我的vmware vsphere集群。
vmware_exporter由于编译问题不成功,选择使用docker方式执行。vmware_exporter
-
编辑配置文件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
</