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

vsphere input field type conflict since telegraf version 1.10 #5565

Closed
jstiops opened this issue Mar 10, 2019 · 7 comments
Closed

vsphere input field type conflict since telegraf version 1.10 #5565

jstiops opened this issue Mar 10, 2019 · 7 comments
Labels
area/vsphere bug unexpected problem or unintended behavior
Milestone

Comments

@jstiops
Copy link

jstiops commented Mar 10, 2019

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.

@jstiops
Copy link
Author

jstiops commented Mar 10, 2019

Ah, probably related issues and PR described in #5563

@einhirn
Copy link

einhirn commented Mar 11, 2019

Had the same problem, added "converter" module to just make everyting a "float" and move the data to a new DB because InfluxDB always reverted to the old schema even though I deleted the measurement...

@einhirn
Copy link

einhirn commented Mar 11, 2019

Had the same problem, added "converter" module to just make everyting a "float" and move the data to a new DB because InfluxDB always reverted to the old schema even though I deleted the measurement...

Offtopic: how would I go on and try to change influxdb schema when no longer using the said workaround?

@danielnelson danielnelson added this to the 1.10.1 milestone Mar 11, 2019
@danielnelson danielnelson added bug unexpected problem or unintended behavior area/vsphere labels Mar 11, 2019
@danielnelson
Copy link
Contributor

In 1.10.1, we will restore the integer types which will provide compatibility with earlier releases. If you have already moved your InfluxDB schema to floats you will need to set use_int_samples = false to stick with 1.10 style.

Closed in #5563

@danielnelson
Copy link
Contributor

@einhirn I wrote up a method for migrating between schema's using Kapacitor when we needed to change the mysql plugin, I think the same method could be used here.

@danielnelson
Copy link
Contributor

@jstiops
Copy link
Author

jstiops commented Mar 14, 2019

i've tested with the latest windows_am64 nightly (as i write this) instead of linked builds, seems to run ok!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/vsphere bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants