Oxalide / vsphere-influxdb-go

Collect VMware vSphere, vCenter and ESXi performance metrics and send them to InfluxDB
GNU General Public License v3.0
216 stars 61 forks source link

No graph no dashboard with oxalide and influx #99

Open sykss opened 5 years ago

sykss commented 5 years ago

Hi, In the first time I try to configure telegraf and vmware vsphere overview but my graph still empty after severals hours of work so i try oxalide but.. I try to set a vsphere monitoring but my dashboard on grafana "vpshere cloud overview" still empty, here is my json config :

GNU nano 2.5.3                                              File: /etc/vsphere-influxdb-go.json

{
  "Domain": ".vcenter",
  "Interval": 60,
  "VCenters": [
    { "Username": "admin", "Password": "******", "Hostname": "pcc.ovh.com" }
  ],

  "InfluxDB": {
    "Prefix": "",
    "Hostname": "http://influxdb:8086",
    "Username": "oxalide",
    "Password": "******",
    "Database": "oxalide_db"
  },

  "Metrics": [
    {
      "ObjectType": [ "VirtualMachine", "HostSystem" ],
      "Definition": [
        { "Metric": "cpu.usage.average", "Instances": "*" },
        { "Metric": "cpu.usage.maximum", "Instances": "*" },
        { "Metric": "cpu.usagemhz.average", "Instances": "*" },
        { "Metric": "cpu.usagemhz.maximum", "Instances": "*" },
        { "Metric": "cpu.wait.summation", "Instances": "*" },
        { "Metric": "cpu.system.summation", "Instances": "*" },
        { "Metric": "cpu.ready.summation", "Instances": "*" },
        { "Metric": "mem.usage.average", "Instances": "*" },
        { "Metric": "mem.usage.maximum", "Instances": "*" },
        { "Metric": "mem.consumed.average", "Instances": "*" },
        { "Metric": "mem.consumed.maximum", "Instances": "*" },
        { "Metric": "mem.active.average", "Instances": "*" },
        { "Metric": "mem.active.maximum", "Instances": "*" },
        { "Metric": "mem.vmmemctl.average", "Instances": "*" },
        { "Metric": "mem.vmmemctl.maximum", "Instances": "*" },
        { "Metric": "mem.totalCapacity.average", "Instances": "*" },
        { "Metric": "net.packetsRx.summation", "Instances": "*" },
        { "Metric": "net.packetsTx.summation", "Instances": "*" },
        { "Metric": "net.throughput.usage.average", "Instances": "*" },
        { "Metric": "net.received.average", "Instances": "*" },
        { "Metric": "net.transmitted.average", "Instances": "*" },
        { "Metric": "net.throughput.usage.nfs.average", "Instances": "*" },
        { "Metric": "datastore.numberReadAveraged.average", "Instances": "*" },
        { "Metric": "datastore.numberWriteAveraged.average", "Instances": "*" },
        { "Metric": "datastore.read.average", "Instances": "*" },
        { "Metric": "datastore.write.average", "Instances": "*" },
        { "Metric": "datastore.totalReadLatency.average", "Instances": "*" },
        { "Metric": "datastore.totalWriteLatency.average", "Instances": "*" },
        { "Metric": "mem.capacity.provisioned.average", "Instances": "*"},
        { "Metric": "cpu.corecount.provisioned.average", "Instances": "*" }
      ]
    },

i give you the vsphere-influxdb-go --debug too debug_oxalide.txt

and here is the content of my db when i use SHOW MEASUREMENTS :

Connected to http://localhost:8086 version 1.7.2
InfluxDB shell version: 1.7.2
Enter an InfluxQL query
> use oxalide_db
Using database oxalide_db
> SHOW MEASUREMENTS
name: measurements
name
----
vsphere_cpu
vsphere_datastore
vsphere_disk
vsphere_hostsystem
vsphere_net
vsphere_resourcepool
vsphere_virtualmachine
>

Told me i u need more informations and thank's you for your help..