Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix folders #104

Closed
wants to merge 3 commits into from

Conversation

Projects
None yet
2 participants
@pryorda
Copy link
Owner

commented May 10, 2019

feat(adding directory support): This is a beta build and should be used with caution

fix #62 #101

When moved from beta it should fix datastore folders as well

Jc2k added some commits Mar 25, 2019

@pryorda pryorda force-pushed the fix_folders branch from 07d2d96 to f835471 May 10, 2019

@pryorda

This comment has been minimized.

Copy link
Owner Author

commented May 10, 2019

Various things are missing in the labels

# HELP vmware_vm_power_state VMWare VM Power state (On / Off)
# TYPE vmware_vm_power_state gauge
vmware_vm_power_state{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",vm_name="firewall"} 1.0
vmware_vm_power_state{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node1"} 1.0
vmware_vm_power_state{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 1.0
vmware_vm_power_state{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="Ubuntu-18.04-v1"} 0.0
vmware_vm_power_state{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="work-vm"} 0.0
vmware_vm_power_state{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 1.0
vmware_vm_power_state{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 1.0
vmware_vm_power_state{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 1.0
vmware_vm_power_state{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 1.0
# HELP vmware_vm_boot_timestamp_seconds VMWare VM boot time in seconds
# TYPE vmware_vm_boot_timestamp_seconds gauge
vmware_vm_boot_timestamp_seconds{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 1554509829.983592
vmware_vm_boot_timestamp_seconds{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 1554509822.483315
vmware_vm_boot_timestamp_seconds{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 1552809671.985387
vmware_vm_boot_timestamp_seconds{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 1552809671.889775
vmware_vm_boot_timestamp_seconds{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 1552809671.925774
# HELP vmware_vm_num_cpu VMWare Number of processors in the virtual machine
# TYPE vmware_vm_num_cpu gauge
vmware_vm_num_cpu{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",vm_name="firewall"} 2.0
vmware_vm_num_cpu{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node1"} 8.0
vmware_vm_num_cpu{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 2.0
vmware_vm_num_cpu{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="Ubuntu-18.04-v1"} 1.0
vmware_vm_num_cpu{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="work-vm"} 4.0
vmware_vm_num_cpu{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 8.0
vmware_vm_num_cpu{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 8.0
vmware_vm_num_cpu{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 8.0
vmware_vm_num_cpu{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 2.0
# HELP vmware_vm_memory_max VMWare VM Memory Max availability in Mbytes
# TYPE vmware_vm_memory_max gauge
vmware_vm_memory_max{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",vm_name="firewall"} 1024.0
vmware_vm_memory_max{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node1"} 4096.0
vmware_vm_memory_max{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 4096.0
vmware_vm_memory_max{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="Ubuntu-18.04-v1"} 512.0
vmware_vm_memory_max{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="work-vm"} 4096.0
vmware_vm_memory_max{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 4096.0
vmware_vm_memory_max{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 10240.0
vmware_vm_memory_max{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 8192.0
vmware_vm_memory_max{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 1024.0
# HELP vmware_vm_guest_disk_free Disk metric per partition
# TYPE vmware_vm_guest_disk_free gauge
vmware_vm_guest_disk_free{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",partition="/",vm_name="firewall"} 15477878784.0
vmware_vm_guest_disk_free{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",partition="/var/run",vm_name="firewall"} 3162112.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/",vm_name="home-kube-node1"} 31683067904.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/",vm_name="home-prometheus0"} 31177310208.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/",vm_name="home-kube-node0"} 33068945408.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/",vm_name="vmware-vcenter"} 5838983168.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/netdump",vm_name="vmware-vcenter"} 1030488064.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/imagebuilder",vm_name="vmware-vcenter"} 10402582528.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/autodeploy",vm_name="vmware-vcenter"} 10402586624.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/boot",vm_name="vmware-vcenter"} 97165312.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/core",vm_name="vmware-vcenter"} 25662570496.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/updatemgr",vm_name="vmware-vcenter"} 105009754112.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/dblog",vm_name="vmware-vcenter"} 15604154368.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/db",vm_name="vmware-vcenter"} 10292412416.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/seat",vm_name="vmware-vcenter"} 10295853056.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/log",vm_name="vmware-vcenter"} 7838093312.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/",vm_name="home-reese0"} 26978607104.0
vmware_vm_guest_disk_free{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/",vm_name="home-kube-master0"} 31554969600.0
# HELP vmware_vm_guest_disk_capacity Disk capacity metric per partition
# TYPE vmware_vm_guest_disk_capacity gauge
vmware_vm_guest_disk_capacity{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",partition="/",vm_name="firewall"} 19739865088.0
vmware_vm_guest_disk_capacity{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",partition="/var/run",vm_name="firewall"} 3567616.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/",vm_name="home-kube-node1"} 40482693120.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/",vm_name="home-prometheus0"} 40482693120.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/",vm_name="home-kube-node0"} 40482693120.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/",vm_name="vmware-vcenter"} 11355283456.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/netdump",vm_name="vmware-vcenter"} 1031823360.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/imagebuilder",vm_name="vmware-vcenter"} 10426310656.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/autodeploy",vm_name="vmware-vcenter"} 10426310656.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/boot",vm_name="vmware-vcenter"} 125783040.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/core",vm_name="vmware-vcenter"} 26279735296.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/updatemgr",vm_name="vmware-vcenter"} 105546809344.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/dblog",vm_name="vmware-vcenter"} 15710797824.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/db",vm_name="vmware-vcenter"} 10426310656.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/seat",vm_name="vmware-vcenter"} 10426310656.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/storage/log",vm_name="vmware-vcenter"} 10426310656.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/",vm_name="home-reese0"} 40482693120.0
vmware_vm_guest_disk_capacity{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",partition="/",vm_name="home-kube-master0"} 40482693120.0
# HELP vmware_vm_guest_tools_running_status VM tools running status
# TYPE vmware_vm_guest_tools_running_status gauge
vmware_vm_guest_tools_running_status{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",tools_status="toolsOk",vm_name="firewall"} 1.0
vmware_vm_guest_tools_running_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_status="toolsOk",vm_name="home-kube-node1"} 1.0
vmware_vm_guest_tools_running_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_status="toolsOk",vm_name="home-prometheus0"} 1.0
vmware_vm_guest_tools_running_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_status="toolsNotRunning",vm_name="Ubuntu-18.04-v1"} 1.0
vmware_vm_guest_tools_running_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_status="toolsNotRunning",vm_name="work-vm"} 1.0
vmware_vm_guest_tools_running_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_status="toolsOk",vm_name="home-kube-node0"} 1.0
vmware_vm_guest_tools_running_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_status="toolsOk",vm_name="vmware-vcenter"} 1.0
vmware_vm_guest_tools_running_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_status="toolsOk",vm_name="home-reese0"} 1.0
vmware_vm_guest_tools_running_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_status="toolsOk",vm_name="home-kube-master0"} 1.0
# HELP vmware_vm_guest_tools_version VM tools version
# TYPE vmware_vm_guest_tools_version gauge
vmware_vm_guest_tools_version{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",tools_version="2147483647",vm_name="firewall"} 1.0
vmware_vm_guest_tools_version{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version="10336",vm_name="home-kube-node1"} 1.0
vmware_vm_guest_tools_version{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version="10336",vm_name="home-prometheus0"} 1.0
vmware_vm_guest_tools_version{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version="10336",vm_name="Ubuntu-18.04-v1"} 1.0
vmware_vm_guest_tools_version{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version="10336",vm_name="work-vm"} 1.0
vmware_vm_guest_tools_version{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version="10336",vm_name="home-kube-node0"} 1.0
vmware_vm_guest_tools_version{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version="10277",vm_name="vmware-vcenter"} 1.0
vmware_vm_guest_tools_version{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version="10336",vm_name="home-reese0"} 1.0
vmware_vm_guest_tools_version{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version="10336",vm_name="home-kube-master0"} 1.0
# HELP vmware_vm_guest_tools_version_status VM tools version status
# TYPE vmware_vm_guest_tools_version_status gauge
vmware_vm_guest_tools_version_status{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",tools_version_status="guestToolsUnmanaged",vm_name="firewall"} 1.0
vmware_vm_guest_tools_version_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version_status="guestToolsUnmanaged",vm_name="home-kube-node1"} 1.0
vmware_vm_guest_tools_version_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version_status="guestToolsUnmanaged",vm_name="home-prometheus0"} 1.0
vmware_vm_guest_tools_version_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version_status="guestToolsUnmanaged",vm_name="Ubuntu-18.04-v1"} 1.0
vmware_vm_guest_tools_version_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version_status="guestToolsUnmanaged",vm_name="work-vm"} 1.0
vmware_vm_guest_tools_version_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version_status="guestToolsUnmanaged",vm_name="home-kube-node0"} 1.0
vmware_vm_guest_tools_version_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version_status="guestToolsUnmanaged",vm_name="vmware-vcenter"} 1.0
vmware_vm_guest_tools_version_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version_status="guestToolsUnmanaged",vm_name="home-reese0"} 1.0
vmware_vm_guest_tools_version_status{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",tools_version_status="guestToolsUnmanaged",vm_name="home-kube-master0"} 1.0
# HELP vmware_datastore_capacity_size VMWare Datasore capacity in bytes
# TYPE vmware_datastore_capacity_size gauge
vmware_datastore_capacity_size{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 536602476544.0
vmware_datastore_capacity_size{dc_name="",ds_cluster="",ds_name="vh1_datastore1"} 119990648832.0
vmware_datastore_capacity_size{dc_name="",ds_cluster="",ds_name="nfsVmwareStorage"} 3148450004992.0
vmware_datastore_capacity_size{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 536602476544.0
vmware_datastore_capacity_size{dc_name="",ds_cluster="",ds_name="vh2_datastore1"} 499826819072.0
# HELP vmware_datastore_freespace_size VMWare Datastore freespace in bytes
# TYPE vmware_datastore_freespace_size gauge
vmware_datastore_freespace_size{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 229157896192.0
vmware_datastore_freespace_size{dc_name="",ds_cluster="",ds_name="vh1_datastore1"} 106919100416.0
vmware_datastore_freespace_size{dc_name="",ds_cluster="",ds_name="nfsVmwareStorage"} 3144938045440.0
vmware_datastore_freespace_size{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 271758393344.0
vmware_datastore_freespace_size{dc_name="",ds_cluster="",ds_name="vh2_datastore1"} 498310578176.0
# HELP vmware_datastore_uncommited_size VMWare Datastore uncommitted in bytes
# TYPE vmware_datastore_uncommited_size gauge
vmware_datastore_uncommited_size{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 0.0
vmware_datastore_uncommited_size{dc_name="",ds_cluster="",ds_name="vh1_datastore1"} 0.0
vmware_datastore_uncommited_size{dc_name="",ds_cluster="",ds_name="nfsVmwareStorage"} 0.0
vmware_datastore_uncommited_size{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 798080904834.0
vmware_datastore_uncommited_size{dc_name="",ds_cluster="",ds_name="vh2_datastore1"} 0.0
# HELP vmware_datastore_provisoned_size VMWare Datastore provisoned in bytes
# TYPE vmware_datastore_provisoned_size gauge
vmware_datastore_provisoned_size{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 307444580352.0
vmware_datastore_provisoned_size{dc_name="",ds_cluster="",ds_name="vh1_datastore1"} 13071548416.0
vmware_datastore_provisoned_size{dc_name="",ds_cluster="",ds_name="nfsVmwareStorage"} 3511959552.0
vmware_datastore_provisoned_size{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 1062924988034.0
vmware_datastore_provisoned_size{dc_name="",ds_cluster="",ds_name="vh2_datastore1"} 1516240896.0
# HELP vmware_datastore_hosts VMWare Hosts number using this datastore
# TYPE vmware_datastore_hosts gauge
vmware_datastore_hosts{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 1.0
vmware_datastore_hosts{dc_name="",ds_cluster="",ds_name="vh1_datastore1"} 1.0
vmware_datastore_hosts{dc_name="",ds_cluster="",ds_name="nfsVmwareStorage"} 1.0
vmware_datastore_hosts{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 1.0
vmware_datastore_hosts{dc_name="",ds_cluster="",ds_name="vh2_datastore1"} 1.0
# HELP vmware_datastore_vms VMWare Virtual Machines count per datastore
# TYPE vmware_datastore_vms gauge
vmware_datastore_vms{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 0.0
vmware_datastore_vms{dc_name="",ds_cluster="",ds_name="vh1_datastore1"} 1.0
vmware_datastore_vms{dc_name="",ds_cluster="",ds_name="nfsVmwareStorage"} 0.0
vmware_datastore_vms{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 8.0
vmware_datastore_vms{dc_name="",ds_cluster="",ds_name="vh2_datastore1"} 0.0
# HELP vmware_datastore_maintenance_mode VMWare datastore maintenance mode (normal / inMaintenance / enteringMaintenance)
# TYPE vmware_datastore_maintenance_mode gauge
vmware_datastore_maintenance_mode{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage",mode="normal"} 1.0
vmware_datastore_maintenance_mode{dc_name="",ds_cluster="",ds_name="vh1_datastore1",mode="normal"} 1.0
vmware_datastore_maintenance_mode{dc_name="",ds_cluster="",ds_name="nfsVmwareStorage",mode="normal"} 1.0
vmware_datastore_maintenance_mode{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage",mode="normal"} 1.0
vmware_datastore_maintenance_mode{dc_name="",ds_cluster="",ds_name="vh2_datastore1",mode="normal"} 1.0
# HELP vmware_datastore_type VMWare datastore type (VMFS, NetworkFileSystem, NetworkFileSystem41, CIFS, VFAT, VSAN, VFFS)
# TYPE vmware_datastore_type gauge
vmware_datastore_type{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage",ds_type="VMFS"} 1.0
vmware_datastore_type{dc_name="",ds_cluster="",ds_name="vh1_datastore1",ds_type="VMFS"} 1.0
vmware_datastore_type{dc_name="",ds_cluster="",ds_name="nfsVmwareStorage",ds_type="NFS41"} 1.0
vmware_datastore_type{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage",ds_type="VMFS"} 1.0
vmware_datastore_type{dc_name="",ds_cluster="",ds_name="vh2_datastore1",ds_type="VMFS"} 1.0
# HELP vmware_datastore_accessible VMWare datastore accessible (true / false)
# TYPE vmware_datastore_accessible gauge
vmware_datastore_accessible{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 1.0
vmware_datastore_accessible{dc_name="",ds_cluster="",ds_name="vh1_datastore1"} 1.0
vmware_datastore_accessible{dc_name="",ds_cluster="",ds_name="nfsVmwareStorage"} 1.0
vmware_datastore_accessible{dc_name="",ds_cluster="",ds_name="iscsiVMwareStorage"} 1.0
vmware_datastore_accessible{dc_name="",ds_cluster="",ds_name="vh2_datastore1"} 1.0
# HELP vmware_host_power_state VMWare Host Power state (On / Off)
# TYPE vmware_host_power_state gauge
vmware_host_power_state{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1"} 1.0
vmware_host_power_state{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2"} 1.0
# HELP vmware_host_connection_state VMWare Host connection state (connected / disconnected / notResponding)
# TYPE vmware_host_connection_state gauge
vmware_host_connection_state{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",state="connected"} 1.0
vmware_host_connection_state{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",state="connected"} 1.0
# HELP vmware_host_maintenance_mode VMWare Host maintenance mode (true / false)
# TYPE vmware_host_maintenance_mode gauge
vmware_host_maintenance_mode{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1"} 0.0
vmware_host_maintenance_mode{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2"} 0.0
# HELP vmware_host_boot_timestamp_seconds VMWare Host boot time in seconds
# TYPE vmware_host_boot_timestamp_seconds gauge
vmware_host_boot_timestamp_seconds{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1"} 1552808256.213461
vmware_host_boot_timestamp_seconds{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2"} 1552809175.490888
# HELP vmware_host_cpu_usage VMWare Host CPU usage in Mhz
# TYPE vmware_host_cpu_usage gauge
vmware_host_cpu_usage{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1"} 723.0
vmware_host_cpu_usage{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2"} 2032.0
# HELP vmware_host_cpu_max VMWare Host CPU max availability in Mhz
# TYPE vmware_host_cpu_max gauge
vmware_host_cpu_max{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1"} 24800.0
vmware_host_cpu_max{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2"} 44800.0
# HELP vmware_host_num_cpu VMWare Number of processors in the Host
# TYPE vmware_host_num_cpu gauge
vmware_host_num_cpu{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1"} 8.0
vmware_host_num_cpu{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2"} 16.0
# HELP vmware_host_memory_usage VMWare Host Memory usage in Mbytes
# TYPE vmware_host_memory_usage gauge
vmware_host_memory_usage{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1"} 2588.0
vmware_host_memory_usage{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2"} 30352.0
# HELP vmware_host_memory_max VMWare Host Memory Max availability in Mbytes
# TYPE vmware_host_memory_max gauge
vmware_host_memory_max{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1"} 7919.03125
vmware_host_memory_max{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2"} 32742.1484375
# HELP vmware_vm_snapshots VMWare current number of existing snapshots
# TYPE vmware_vm_snapshots gauge
vmware_vm_snapshots{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="Ubuntu-18.04-v1"} 1.0
# HELP vmware_vm_snapshot_timestamp_seconds VMWare Snapshot creation time in seconds
# TYPE vmware_vm_snapshot_timestamp_seconds gauge
vmware_vm_snapshot_timestamp_seconds{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="Ubuntu-18.04-v1",vm_snapshot_name="For_LInked_Clones"} 1543195134.31244
# HELP vmware_vm_cpu_ready_summation vmware_vm_cpu_ready_summation
# TYPE vmware_vm_cpu_ready_summation gauge
vmware_vm_cpu_ready_summation{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",vm_name="firewall"} 16.0
vmware_vm_cpu_ready_summation{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node1"} 158.0
vmware_vm_cpu_ready_summation{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 35.0
vmware_vm_cpu_ready_summation{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 175.0
vmware_vm_cpu_ready_summation{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 150.0
vmware_vm_cpu_ready_summation{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 97.0
vmware_vm_cpu_ready_summation{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 164.0
# HELP vmware_vm_cpu_usage_average vmware_vm_cpu_usage_average
# TYPE vmware_vm_cpu_usage_average gauge
vmware_vm_cpu_usage_average{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",vm_name="firewall"} 383.0
vmware_vm_cpu_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node1"} 106.0
vmware_vm_cpu_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 154.0
vmware_vm_cpu_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 93.0
vmware_vm_cpu_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 215.0
vmware_vm_cpu_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 66.0
vmware_vm_cpu_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 1275.0
# HELP vmware_vm_cpu_usagemhz_average vmware_vm_cpu_usagemhz_average
# TYPE vmware_vm_cpu_usagemhz_average gauge
vmware_vm_cpu_usagemhz_average{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",vm_name="firewall"} 237.0
vmware_vm_cpu_usagemhz_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node1"} 239.0
vmware_vm_cpu_usagemhz_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 86.0
vmware_vm_cpu_usagemhz_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 208.0
vmware_vm_cpu_usagemhz_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 483.0
vmware_vm_cpu_usagemhz_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 149.0
vmware_vm_cpu_usagemhz_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 714.0
# HELP vmware_vm_disk_usage_average vmware_vm_disk_usage_average
# TYPE vmware_vm_disk_usage_average gauge
vmware_vm_disk_usage_average{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",vm_name="firewall"} 138.0
vmware_vm_disk_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node1"} 26.0
vmware_vm_disk_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 36.0
vmware_vm_disk_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 18.0
vmware_vm_disk_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 167.0
vmware_vm_disk_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 1.0
vmware_vm_disk_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 82.0
# HELP vmware_vm_disk_read_average vmware_vm_disk_read_average
# TYPE vmware_vm_disk_read_average gauge
vmware_vm_disk_read_average{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",vm_name="firewall"} 0.0
vmware_vm_disk_read_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node1"} 0.0
vmware_vm_disk_read_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 0.0
vmware_vm_disk_read_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 0.0
vmware_vm_disk_read_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 7.0
vmware_vm_disk_read_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 0.0
vmware_vm_disk_read_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 8.0
# HELP vmware_vm_disk_write_average vmware_vm_disk_write_average
# TYPE vmware_vm_disk_write_average gauge
vmware_vm_disk_write_average{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",vm_name="firewall"} 138.0
vmware_vm_disk_write_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node1"} 26.0
vmware_vm_disk_write_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 36.0
vmware_vm_disk_write_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 18.0
vmware_vm_disk_write_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 160.0
vmware_vm_disk_write_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 1.0
vmware_vm_disk_write_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 73.0
# HELP vmware_vm_mem_usage_average vmware_vm_mem_usage_average
# TYPE vmware_vm_mem_usage_average gauge
vmware_vm_mem_usage_average{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",vm_name="firewall"} 7599.0
vmware_vm_mem_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node1"} 699.0
vmware_vm_mem_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 199.0
vmware_vm_mem_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 699.0
vmware_vm_mem_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 1399.0
vmware_vm_mem_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 299.0
vmware_vm_mem_usage_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 5799.0
# HELP vmware_vm_net_received_average vmware_vm_net_received_average
# TYPE vmware_vm_net_received_average gauge
vmware_vm_net_received_average{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",vm_name="firewall"} 4.0
vmware_vm_net_received_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node1"} 2.0
vmware_vm_net_received_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 0.0
vmware_vm_net_received_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 2.0
vmware_vm_net_received_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 5.0
vmware_vm_net_received_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 2.0
vmware_vm_net_received_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 0.0
# HELP vmware_vm_net_transmitted_average vmware_vm_net_transmitted_average
# TYPE vmware_vm_net_transmitted_average gauge
vmware_vm_net_transmitted_average{cluster_name="vmware-hypervisor1",dc_name="",host_name="vmware-hypervisor1",vm_name="firewall"} 3.0
vmware_vm_net_transmitted_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node1"} 0.0
vmware_vm_net_transmitted_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-prometheus0"} 0.0
vmware_vm_net_transmitted_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-node0"} 0.0
vmware_vm_net_transmitted_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="vmware-vcenter"} 4.0
vmware_vm_net_transmitted_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-reese0"} 2.0
vmware_vm_net_transmitted_average{cluster_name="c1",dc_name="",host_name="vmware-hypervisor2",vm_name="home-kube-master0"} 4.0 ```
@pryorda

This comment has been minimized.

Copy link
Owner Author

commented May 10, 2019

Hosts and Clusters
image

Network
image

Datastores
image

dc_name = folder_to_datacenter[folder_id]['name']

ds_cluster = ''
if folder_id in folder_to_storagepod:

This comment has been minimized.

Copy link
@Jc2k

Jc2k May 10, 2019

Collaborator

If ds_cluster is blank then this test must be failing. @pryorda can you run this in your environment with a print here? Maybe the dict isn't properly populated.

This comment has been minimized.

Copy link
@Jc2k

Jc2k May 10, 2019

Collaborator

With the other print ^ then just a print(folder_id, folder_to_storagepod) here will be enough.

@@ -286,11 +286,15 @@ def folder_to_datacenter(self):

folders_to_dcs = {}
for folder in folders.values():

This comment has been minimized.

Copy link
@Jc2k

Jc2k May 10, 2019

Collaborator

@pryorda Can you stick in something like:

print(folder['id'], folder['parent'], type(folder))

And send me the output?

@pryorda

This comment has been minimized.

Copy link
Owner Author

commented May 10, 2019

[2019-05-10 17:00:38.495212+00:00] Fetching vim.VirtualMachine inventory
[2019-05-10 17:00:38.498936+00:00] Retrieving service instance content
[2019-05-10 17:00:38.500342+00:00] Fetching vim.HostSystem inventory
[2019-05-10 17:00:38.502813+00:00] Fetching vim.Datacenter inventory
[2019-05-10 17:00:38.504036+00:00] Fetching vim.ComputeResource inventory
[2019-05-10 17:00:38.504478+00:00] Building mapping of vim.Folder -> vim.Datacenter
[2019-05-10 17:00:38.504587+00:00] Fetching vim.Folder inventory
[2019-05-10 17:00:38.505767+00:00] START: _vmware_get_vm_perf_manager_metrics
[2019-05-10 17:00:38.506053+00:00] Starting datastore metrics collection
[2019-05-10 17:00:38.506170+00:00] Fetching vim.Datastore inventory
[2019-05-10 17:00:38.507591+00:00] Building mapping of vim.Folder -> vim.StoragePod
[2019-05-10 17:00:38.507889+00:00] Starting host metrics collection
[2019-05-10 17:00:39.393024+00:00] Retrieved service instance content
[2019-05-10 17:00:40.343549+00:00] Fetched vim.VirtualMachine inventory (0:00:01.848230)
[2019-05-10 17:00:40.346154+00:00] Fetched vim.Datacenter inventory (0:00:01.843170)
[2019-05-10 17:00:40.346394+00:00] Fetched vim.ComputeResource inventory (0:00:01.842178)
[2019-05-10 17:00:40.351119+00:00] Fetched vim.HostSystem inventory (0:00:01.849853)
[2019-05-10 17:00:40.351307+00:00] Fetched vim.Folder inventory (0:00:01.846649)
[2019-05-10 17:00:40.351499+00:00] FolderID:group-d986
[2019-05-10 17:00:40.351630+00:00] FolderParent:'vim.Folder:group-d1'
[2019-05-10 17:00:40.351716+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.351774+00:00] FolderID:group-v988
[2019-05-10 17:00:40.351876+00:00] FolderParent:'vim.Datacenter:datacenter-987'
[2019-05-10 17:00:40.351920+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.352013+00:00] FolderID:group-h989
[2019-05-10 17:00:40.352097+00:00] FolderParent:'vim.Datacenter:datacenter-987'
[2019-05-10 17:00:40.352148+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.352186+00:00] FolderID:group-s990
[2019-05-10 17:00:40.352263+00:00] FolderParent:'vim.Datacenter:datacenter-987'
[2019-05-10 17:00:40.352337+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.352372+00:00] FolderID:group-n991
[2019-05-10 17:00:40.352400+00:00] FolderParent:'vim.Datacenter:datacenter-987'
[2019-05-10 17:00:40.352428+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.352509+00:00] FolderID:group-v992
[2019-05-10 17:00:40.352586+00:00] FolderParent:'vim.Folder:group-v988'
[2019-05-10 17:00:40.352620+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.352669+00:00] FolderID:group-v3
[2019-05-10 17:00:40.352754+00:00] FolderParent:'vim.Datacenter:datacenter-2'
[2019-05-10 17:00:40.352794+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.352827+00:00] FolderID:group-h4
[2019-05-10 17:00:40.352855+00:00] FolderParent:'vim.Datacenter:datacenter-2'
[2019-05-10 17:00:40.352883+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.352967+00:00] FolderID:group-s5
[2019-05-10 17:00:40.353046+00:00] FolderParent:'vim.Datacenter:datacenter-2'
[2019-05-10 17:00:40.353071+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.353099+00:00] FolderID:group-n6
[2019-05-10 17:00:40.353129+00:00] FolderParent:'vim.Datacenter:datacenter-2'
[2019-05-10 17:00:40.353195+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.353280+00:00] FolderID:group-n1001
[2019-05-10 17:00:40.353326+00:00] FolderParent:'vim.Folder:group-n6'
[2019-05-10 17:00:40.353411+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.353569+00:00] FolderID:group-n1000
[2019-05-10 17:00:40.353671+00:00] FolderParent:'vim.Folder:group-n6'
[2019-05-10 17:00:40.353718+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.353804+00:00] FolderID:group-s999
[2019-05-10 17:00:40.353889+00:00] FolderParent:'vim.Folder:group-s5'
[2019-05-10 17:00:40.353925+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.353962+00:00] FolderID:group-v67
[2019-05-10 17:00:40.354044+00:00] FolderParent:'vim.Folder:group-v3'
[2019-05-10 17:00:40.354084+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.354122+00:00] FolderID:group-v43
[2019-05-10 17:00:40.354218+00:00] FolderParent:'vim.Folder:group-v3'
[2019-05-10 17:00:40.354295+00:00] FolderType:<class 'dict'>
[2019-05-10 17:00:40.354346+00:00] Built mapping of vim.Folder -> vim.Datacenter
[2019-05-10 17:00:40.355551+00:00] Finished vm metrics collection
[2019-05-10 17:00:40.356356+00:00] Finished host metrics collection
[2019-05-10 17:00:40.356881+00:00] Built mapping of vim.Folder -> vim.StoragePod
[2019-05-10 17:00:40.457839+00:00] FIN: _vmware_get_vm_perf_manager_metrics
[2019-05-10 17:00:40.490816+00:00] Fetched vim.Datastore inventory (0:00:01.984554)
[2019-05-10 17:00:40.490975+00:00] FolderID: group-s990
[2019-05-10 17:00:40.491051+00:00] StoragePod: {}
[2019-05-10 17:00:40.491260+00:00] FolderID: group-s990
[2019-05-10 17:00:40.491343+00:00] StoragePod: {}
[2019-05-10 17:00:40.491420+00:00] FolderID: group-s990
[2019-05-10 17:00:40.491683+00:00] StoragePod: {}
[2019-05-10 17:00:40.491937+00:00] FolderID: group-s5
[2019-05-10 17:00:40.491970+00:00] StoragePod: {}
[2019-05-10 17:00:40.492027+00:00] FolderID: group-s999
[2019-05-10 17:00:40.492241+00:00] StoragePod: {}
[2019-05-10 17:00:40.492974+00:00] Finished datastore metrics collection ```
@pryorda

This comment has been minimized.

Copy link
Owner Author

commented May 14, 2019

#105 Handles this

@pryorda pryorda closed this May 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.