vmware_exporter
vmware_exporter copied to clipboard
Mixed up custom attibutes
In vSphere Client version 6.7.0.51000 we set some custom attribute for each VM:
- contact
- info
- version
With pryorda/vmware_exporter:v0.18.3 I run this query to get all the mixed up attibutes:
{vm_name="myserver",version!="13.03"} OR {vm_name="myserver",contact!="my name"} OR {vm_name="myserver",info!="some info"}
As result I got
vmware_vm_net_droppedTx_summation{
contact="n/a", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_net_multicastRx_summation{
contact="my name",
info="n/a", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_net_multicastRx_summation{
contact="some info", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_net_multicastRx_summation{
contact="n/a", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_net_multicastTx_summation{
contact="my name",
info="n/a", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_net_multicastTx_summation{
contact="some info", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_net_multicastTx_summation{
contact="n/a", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_net_received_average{
contact="my name",
info="n/a", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_net_received_average{
contact="some info", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_net_received_average{
contact="n/a", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_net_transmitted_average{
contact="my name",
info="n/a", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_net_transmitted_average{
contact="some info", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_net_transmitted_average{
contact="n/a", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_num_cpu{
contact="my name",
info="n/a", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_num_cpu{
contact="some info", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_num_cpu{
contact="n/a", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_power_state{
contact="my name",
info="n/a", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_power_state{
contact="some info", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_power_state{
contact="n/a", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_red_alarms{
contact="my name",
info="n/a", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_red_alarms{
contact="my name",
info="n/a", # should be "some info"
version="13.03",
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_red_alarms{
contact="n/a", # should be "my name"
info="n/a", # should be "some info"
version="my name", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_red_alarms{
contact="n/a", # should be "my name"
info="13.03", # should be "some info"
version="my name", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_template{
contact="my name",
info="n/a", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_template{
contact="some info", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_template{
contact="n/a", # should be "my name"
info="01/22/2019 12:01:26", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_yellow_alarms{
contact="my name",
info="n/a", # should be "some info"
version="n/a", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_yellow_alarms{
contact="my name",
info="n/a", # should be "some info"
version="13.03",
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_yellow_alarms{
contact="n/a", # should be "my name"
info="n/a", # should be "some info"
version="my name", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
vmware_vm_yellow_alarms{
contact="n/a", # should be "my name"
info="13.03", # should be "some info"
version="my name", # should be "13.03"
cluster_name="mycluster",
dc_name="mycompany",
ds_name="mystorage",
host_name="esx23.example.com",
instance="vcenter32.example.com",
job="vmware_vcenter",
tags="n/a",
vm_name="myserver"
}
So what's wrong? Thanks.
Jonas