Skip to content

VMware vSAN "overall_health" metric isn't collected #19099

Closed

Description

@top-secrett

Relevant telegraf.conf

[[inputs.vsphere]]
  vcenters    = ["${VCENTER_URL2}/sdk"]
  username    = "${VCENTER_USER2}"
  password    = "${VCENTER_PASSWORD2}"

  insecure_skip_verify = true
  timeout                   = "60s"
  max_query_objects         = 256
#  max_query_metrics         = 256
#  object_discovery_interval = "300s"

  vm_metric_exclude = ["*"]
  host_metric_exclude = ["*"]
  datastore_metric_exclude = ["*"]
  cluster_metric_exclude = ["*"]
  resource_pool_metric_exclude = ["*"]
  datacenter_metric_exclude = ["*"]

  ###vSAN
  vsan_metric_include = [
    "summary.health",
    "summary.disk-usage",
    "summary.resync",
  ]
  vsan_metric_exclude = []
  vsan_cluster_include = ["/*/host/DZE_HCI"]
#  vsan_metric_skip_verify = true

  collect_concurrency = 5
  discover_concurrency = 5


[[outputs.influxdb_v2]]
  namepass     = ["vsphere_*"]
  urls         = ["http://influxdb:8086"]
  token        = "${INFLUXDB_TOKEN}"
  organization = "${INFLUXDB_ORG}"
  bucket       = "${INFLUXDB_BUCKET}"

Logs from Telegraf

I got these errors earlier in configuration with all metrics.

2026-06-15T06:28:04Z E! [inputs.vsphere] [vSAN] Failed to parse a timestamp: 0001-01-01 00:00:00 +0000 UTC. Skipping
2026-06-15T06:28:05Z E! [inputs.vsphere] [vSAN] Failed to parse a timestamp: 0001-01-01 00:00:00 +0000 UTC. Skipping
2026-06-15T06:28:05Z E! [inputs.vsphere] [vSAN] Error querying performance data for DZE-9: heap-memory: ServerFaultCode: A specified parameter was not correct: entityRefId.
2026-06-15T06:28:05Z E! [inputs.vsphere] [vSAN] Failed to parse a timestamp: 0001-01-01 00:00:00 +0000 UTC. Skipping
2026-06-15T06:28:05Z E! [inputs.vsphere] [vSAN] Error querying performance data for DZE-9: cmmds-workload: ServerFaultCode: A specified parameter was not correct: entityRefId.
2026-06-15T06:28:05Z E! [inputs.vsphere] [vSAN] Failed to parse a timestamp: 0001-01-01 00:00:00 +0000 UTC. Skipping
2026-06-15T06:28:05Z E! [inputs.vsphere] [vSAN] Failed to parse a timestamp: 0001-01-01 00:00:00 +0000 UTC. Skipping
2026-06-15T06:28:05Z E! [inputs.vsphere] [vSAN] Failed to parse a timestamp: 0001-01-01 00:00:00 +0000 UTC. Skipping
2026-06-15T06:28:05Z E! [inputs.vsphere] [vSAN] Failed to parse a timestamp: 0001-01-01 00:00:00 +0000 UTC. Skipping
2026-06-15T06:28:05Z E! [inputs.vsphere] [vSAN] Error querying performance data for DZE_HCI: clom-disk: ServerFaultCode: A specified parameter was not correct: entityRefId.
2026-06-15T06:28:05Z E! [inputs.vsphere] [vSAN] Failed to parse a timestamp: 0001-01-01 00:00:00 +0000 UTC. Skipping
2026-06-15T06:28:05Z E! [inputs.vsphere] [vSAN] Failed to parse a timestamp: 0001-01-01 00:00:00 +0000 UTC. Skipping
2026-06-15T06:28:05Z E! [inputs.vsphere] [vSAN] Failed to parse a timestamp: 0001-01-01 00:00:00 +0000 UTC. Skipping
2026-06-15T06:28:06Z E! [inputs.vsphere] [vSAN] Error querying performance data for DZE-9: cluster-pmem: ServerFaultCode: The operation is not supported on the object..
2026-06-15T06:28:06Z E! [inputs.vsphere] [vSAN] Error querying performance data for DZE-9: ddh-disk: ServerFaultCode: A specified parameter was not correct: entityRefId.
2026-06-15T06:28:06Z E! [inputs.vsphere] [vSAN] Failed to parse a timestamp: 0001-01-01 00:00:00 +0000 UTC. Skipping

_______________
docker exec -it telegraf telegraf --config /etc/telegraf/telegraf.conf --test --debug 


2026-06-15T07:43:42Z I! Loading config: /etc/telegraf/telegraf.conf
2026-06-15T07:43:42Z W! DeprecationWarning: Option "tag" of plugin "processors.enum" deprecated since version 1.35.0 and will be removed in 1.40.0: use 'tags' instead
2026-06-15T07:43:42Z W! DeprecationWarning: Option "tag" of plugin "processors.enum" deprecated since version 1.35.0 and will be removed in 1.40.0: use 'tags' instead
2026-06-15T07:43:42Z I! Starting Telegraf 1.39.0 brought to you by InfluxData the makers of InfluxDB
2026-06-15T07:43:42Z I! Available plugins: 245 inputs, 9 aggregators, 35 processors, 26 parsers, 68 outputs, 8 secret stores
2026-06-15T07:43:42Z I! Loaded inputs: exec (2x) snmp_trap vsphere
2026-06-15T07:43:42Z I! Loaded aggregators:
2026-06-15T07:43:42Z I! Loaded processors: enum regex starlark
2026-06-15T07:43:42Z I! Loaded secretstores:
2026-06-15T07:43:42Z W! Outputs are not used in testing mode!
2026-06-15T07:43:42Z I! Tags enabled: host=0cfd04967f05
2026-06-15T07:43:42Z W! Deprecated processors: 0 and 2 options
2026-06-15T07:43:42Z W! [agent] The default value of 'skip_processors_after_aggregators' will change to 'true' with Telegraf v1.40.0! If you need the current default behavior, please explicitly set the option to 'false'!
2026-06-15T07:43:42Z D! [agent] Initializing plugins
2026-06-15T07:43:44Z D! [processors.regex] tags: Using explicit mode...
2026-06-15T07:43:44Z D! [processors.regex] tags: Using explicit mode...
2026-06-15T07:43:44Z D! [processors.regex] tags: Using explicit mode...
2026-06-15T07:43:44Z D! [processors.regex] tags: Using explicit mode...
2026-06-15T07:43:44Z D! [agent] Starting service inputs
2026-06-15T07:43:44Z E! [agent] Starting input inputs.snmp_trap: listening failed: listen udp :162: bind: address already in use
2026-06-15T07:43:44Z I! [inputs.vsphere] Starting plugin
2026-06-15T07:43:44Z D! [inputs.vsphere] Creating client: XXX
2026-06-15T07:43:44Z D! [inputs.vsphere] Option query for maxQueryMetrics failed. Using default
2026-06-15T07:43:44Z D! [inputs.vsphere] vCenter version is: 8.0.3
2026-06-15T07:43:44Z D! [inputs.vsphere] vCenter says max_query_metrics should be 256
2026-06-15T07:43:44Z D! [inputs.vsphere] Running initial discovery
2026-06-15T07:43:44Z D! [inputs.vsphere] Discover new objects for XXX
2026-06-15T07:43:44Z D! [inputs.vsphere] Discovering resources for vsan
2026-06-15T07:43:44Z D! [inputs.vsphere] Find(ClusterComputeResource, /*/host/DZE_HCI) returned 1 objects
2026-06-15T07:43:44Z D! [inputs.vsphere] Discovering resources for datacenter
2026-06-15T07:43:44Z D! [inputs.vsphere] Find(Datacenter, /*) returned 4 objects
2026-06-15T07:43:44Z D! [inputs.vsphere] Discovering resources for cluster
2026-06-15T07:43:44Z D! [inputs.vsphere] Find(ClusterComputeResource, /*/host/**) returned 6 objects
2026-06-15T07:43:44Z D! [inputs.vsphere] Discovering resources for resourcepool
2026-06-15T07:43:44Z D! [inputs.vsphere] Find(ResourcePool, /*/host/**) returned 22 objects
2026-06-15T07:43:44Z D! [inputs.vsphere] Discovering resources for host
2026-06-15T07:43:45Z D! [inputs.vsphere] Find(HostSystem, /*/host/**) returned 37 objects
2026-06-15T07:43:45Z D! [inputs.vsphere] Discovering resources for vm
2026-06-15T07:43:45Z D! [inputs.vsphere] Discovering resources for datastore
2026-06-15T07:43:45Z D! [inputs.vsphere] Find(Datastore, /*/datastore/**) returned 59 objects
> vsphere_vsan_summary,clustername=DZE_HCI,dcname=DZE,host=0cfd04967f05,moid=domain-c3025,source=DZE_HCI,vcenter=XXX free_capacity_byte=549061007014025i,total_capacity_byte=737417229238272i 1781509426000000000
> vsphere_vsan_summary,clustername=DZE_HCI,dcname=DZE,host=0cfd04967f05,moid=domain-c3025,source=DZE_HCI,vcenter=XXX total_bytes_to_sync=0i,total_objects_to_sync=0i,total_recovery_eta=0i 1781509426000000000
2026-06-15T07:43:46Z D! [inputs.vsphere] [vSAN] Query vsan performance for time interval: 2026-06-15 07:28:46.049652398 +0000 UTC ~ 2026-06-15 07:43:46.049652398 +0000 UTC
2026-06-15T07:43:46Z D! [inputs.vsphere] purged timestamp cache. 0 deleted with 1 remaining
2026-06-15T07:43:46Z D! [agent] Stopping service inputs
2026-06-15T07:43:46Z I! [inputs.vsphere] Stopping plugin
2026-06-15T07:43:46Z D! [inputs.vsphere] Waiting for endpoint "XXX" to finish
2026-06-15T07:43:46Z D! [inputs.vsphere] Exiting discovery goroutine for XXX
2026-06-15T07:43:46Z D! [agent] Input channel closed
2026-06-15T07:43:46Z D! [agent] Processor channel closed
2026-06-15T07:43:46Z D! [agent] Processor channel closed
2026-06-15T07:43:46Z D! [agent] Processor channel closed
2026-06-15T07:43:46Z D! [agent] Stopped Successfully

System info

docker telegraf:1.39, vSphere Client version 8.0.3.00800

Docker

I got metric only once, when health was 96 insted of 98
Image

Image

Steps to reproduce

  1. try to collect VMware vSAN summary.health (overall_health) metric on vSphere Client version 8.0.3.00800
  2. Metric doesn't appear

Expected behavior

Metric overall_health is collected

Actual behavior

Metric overall_health isn't collected

Additional info

No response

Activity

  1. added
    bug
    on Jun 15, 2026
  2. skartikey commented on Jun 17, 2026

    @skartikey
    Contributor

    @top-secrett Opened #19126 to fix this.

    It adds a vsan_health_fetch_from_cache option (default false). With the default, the vSAN health summary is freshly evaluated on each gather instead of read from vCenter's cache, so overall_health is always populated. If you prefer the lighter cached read:

    vsan_health_fetch_from_cache = true

    Could you download the binary built from this PR and run it against your setup to confirm overall_health is now collected? Grab the artifact from the CI build on #19126.

  3. self-assigned this
    on Jun 17, 2026
  4. top-secrett commented on Jun 18, 2026

    @top-secrett
    Author

    @skartikey
    I simply replaced /usr/bin/telegraf in docker with the new one and got this:

    vsphere_vsan_summary,clustername=DZE_HCI,dcname=DZE,host=728fdda23c12,moid=domain-c3025,source=DZE_HCI,vcenter=XXX free_capacity_byte=544582673821023i,total_capacity_byte=737417229238272i 1781794995000000000
    2026-06-18T15:03:15Z D! [inputs.vsphere] [vSAN] Skipping health summary for cluster DZE_HCI: unexpected overall health "info"
    vsphere_vsan_summary,clustername=DZE_HCI,dcname=DZE,host=728fdda23c12,moid=domain-c3025,source=DZE_HCI,vcenter=XXX total_bytes_to_sync=0i,total_objects_to_sync=0i,total_recovery_eta=0i 1781794995000000000

  5. top-secrett commented on Jun 30, 2026

    @top-secrett
    Author

    @skartikey @srebhan
    I'm sorry, but I'm still getting an error, and the “overall_health” metric is missing.
    2026-06-30T06:48:58Z D! [inputs.vsphere] [vSAN] Skipping health summary for cluster DZE_HCI due to invalid value "info"

  6. srebhan commented on Jul 20, 2026

    @srebhan
    Member

    @top-secrett can you please open a new bug report issue!?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions