Skip to content

vsphere input field type conflict since telegraf version 1.10 #5565

@jstiops

Description

@jstiops

Relevant telegraf.conf:


#realtime stats
 [[inputs.vsphere]]
   ## List of vCenter URLs to be monitored. These three lines must be uncommented
   ## and edited for the plugin to work.
   vcenters = [ "https://redacted/sdk" ]
   username = "redacted"
   password = "redacted"


interval = "60s"
  insecure_skip_verify = true
  force_discover_on_init = true

  # Exclude all historical metrics
  datastore_metric_exclude = ["*"]
  cluster_metric_exclude = ["*"]
  datacenter_metric_exclude = ["*"]

  collect_concurrency = 1
  discover_concurrency = 1

  ## timeout applies to any of the api request made to vcenter
  timeout = "10s"
   
#historical stats
 [[inputs.vsphere]]
   vcenters = [ "https://redacted/sdk" ]
   username = "redacted"
   password = "redacted"

  interval = "300s"
  insecure_skip_verify = true
  force_discover_on_init = true
  ## the interval before (re)discovering objects subject to metrics collection (default: 300s)
  object_discovery_interval = "600s"
  host_metric_exclude = ["*"] # Exclude realtime metrics
  vm_metric_exclude = ["*"] # Exclude realtime metrics
  cluster_metric_exclude = ["*"] # Exclude cluster metrics
  datacenter_metric_exclude = ["*"] # Exclude datacenter metrics

  #max_query_metrics = 256
  collect_concurrency = 1

  ## timeout applies to any of the api request made to vcenter
  timeout = "120s"  

System info:

telegraf 1.10 on Windows Server 2016
vSphere 6.7 update1
InfluxDB 1.7.4

Steps to reproduce:

upgraded telegraf.exe on windows from 1.9.4 tot 1.10.

Expected behavior:

no change in behavior.

Actual behavior:

seeing following entries in telegraf.log, alot of them for alot of metrics

2019-03-10T16:33:03Z E! [outputs.influxdb]: when writing to [https://redacted:8086]: received error partial write: field type conflict: input field "used_summation" on measurement "vsphere_vm_cpu" is type float, already exists as type integer dropped=921; discarding points
2019-03-10T16:34:02Z E! [outputs.influxdb]: when writing to [https://redacted:8086]: received error partial write: field type conflict: input field "datastoreWriteOIO_latest" on measurement "vsphere_host_datastore" is type float, already exists as type integer dropped=872; discarding points
2019-03-10T16:34:02Z E! [outputs.influxdb]: when writing to [https://redacted:8086]: received error partial write: field type conflict: input field "maxlimited_summation" on measurement "vsphere_vm_cpu" is type float, already exists as type integer dropped=948; discarding points

Additional info:

had to revert back to 1.9.4 to get my metrics back.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/vspherebugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions