From b12eb5a60eb970739f2caf5e2748fda1ffd44861 Mon Sep 17 00:00:00 2001 From: Dane Strandboge <136023093+DStrand1@users.noreply.github.com> Date: Wed, 4 Dec 2024 13:30:15 -0600 Subject: [PATCH] feat(inputs.vsphere): Add cpu temperature field (#16109) --- plugins/inputs/vsphere/README.md | 2 ++ plugins/inputs/vsphere/finder.go | 1 + 2 files changed, 3 insertions(+) diff --git a/plugins/inputs/vsphere/README.md b/plugins/inputs/vsphere/README.md index 97184ec0a..3324c088c 100644 --- a/plugins/inputs/vsphere/README.md +++ b/plugins/inputs/vsphere/README.md @@ -551,6 +551,8 @@ override the default query interval in the vSphere plugin. * Power: energy, usage * Datastore stats: * Disk: Capacity, provisioned, used +* Numeric Sensor stats: + * CPU: temperature For a detailed list of commonly available metrics, please refer to [METRICS.md](METRICS.md) diff --git a/plugins/inputs/vsphere/finder.go b/plugins/inputs/vsphere/finder.go index 8d58653c1..529a6ca92 100644 --- a/plugins/inputs/vsphere/finder.go +++ b/plugins/inputs/vsphere/finder.go @@ -263,6 +263,7 @@ func init() { "Datastore": {"parent", "info", "customValue"}, "ClusterComputeResource": {"parent", "customValue"}, "Datacenter": {"parent", "customValue"}, + "HostNumericSensorInfo": {"parent", "temperature", "baseUnits"}, } containers = map[string]interface{}{