Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7195b10
feat(input.vsphere) : add custom properties
tguenneguez Jun 25, 2026
f86e85f
feat(inputs.vsphere) : add custom properties
tguenneguez Jun 29, 2026
cd2c9f0
feat(inputs.vsphere): add custom properties
tguenneguez Jun 30, 2026
8229c22
Correction gocritic
tguenneguez Jun 30, 2026
f6d7d90
Corrige syntaxe
tguenneguez Jun 30, 2026
7c879d6
Corrige syntax
tguenneguez Jun 30, 2026
174e995
Modify the syntax
tguenneguez Jul 1, 2026
2480e21
Correction syntaxe
tguenneguez Jul 3, 2026
1407119
Retour arrière sur une modification inutile
tguenneguez Jul 15, 2026
899b387
Symplify code
tguenneguez Jul 15, 2026
588b73b
Correction retour getExtraData
tguenneguez Jul 15, 2026
9c94760
Merge branch 'add-custom-properties-vsphere' of https://github.com/tg…
tguenneguez Jul 15, 2026
e617e16
Corrige les tests
tguenneguez Jul 15, 2026
235438b
Replace resType in resMType
tguenneguez Jul 15, 2026
5beb4b6
Translate comments
tguenneguez Jul 15, 2026
22ae6ac
Corrige syntaxe
tguenneguez Jul 15, 2026
9ad4016
Modify syntaxe
tguenneguez Jul 15, 2026
e06c9c8
Correction syntaxe
tguenneguez Jul 15, 2026
48a8df7
Correction syntaxe
tguenneguez Jul 15, 2026
98ba92c
Retire custoFields: nil,
tguenneguez Jul 16, 2026
705997e
Corrige filtres
tguenneguez Jul 16, 2026
e050ea7
Corrige les filtres
tguenneguez Jul 16, 2026
5d614ec
Corrige syntaxe
tguenneguez Jul 16, 2026
29005b4
Rename var
tguenneguez Jul 16, 2026
38f732b
propertie => property
tguenneguez Jul 17, 2026
2781898
Correction as recommanded
tguenneguez Jul 17, 2026
30dc27c
Only for poweredOn VM
tguenneguez Jul 17, 2026
03a4f5b
Corrige syntaxe
tguenneguez Jul 17, 2026
8e0f141
Correction syntaxe
tguenneguez Jul 17, 2026
de26842
Corrige syntaxe
tguenneguez Jul 17, 2026
8d95e0b
Corrige syntaxe
tguenneguez Jul 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 54 additions & 1 deletion plugins/inputs/vsphere/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ to use them.
]
# vm_metric_exclude = [] ## Nothing is excluded by default
# vm_instances = true ## true by default
## Custom VM properties to collect.
## If the properties are text-based, they will be added as tags; otherwise, they will be added as metrics.
# vm_property_include = ["runtime.powerState", "summary.config.MemorySizeMB", "summary.config.MemoryReservation"]

## Hosts
## Typical host metrics (if omitted or empty, all metrics are collected)
Expand Down Expand Up @@ -140,41 +143,58 @@ to use them.

# host_metric_exclude = [] ## Nothing excluded by default
# host_instances = true ## true by default

## Custom host properties to collect.
## If the properties are text-based, they will be added as tags; otherwise, they will be added as metrics.
# host_property_include = ["summary.runtime.powerState", "summary.overallStatus", "summary.runtime.inMaintenanceMode", "summary.runtime.connectionState"]

## Clusters
# cluster_include = [ "/*/host/**"] # Inventory path to clusters to collect (by default all are collected)
# cluster_exclude = [] # Inventory paths to exclude
# cluster_metric_include = [] ## if omitted or empty, all metrics are collected
# cluster_metric_exclude = [] ## Nothing excluded by default
# cluster_instances = false ## false by default
## Custom cluster properties to collect.
## If the properties are text-based, they will be added as tags; otherwise, they will be added as metrics.
# cluster_property_include = []

## Resource Pools
# resource_pool_include = [ "/*/host/**"] # Inventory path to resource pools to collect (by default all are collected)
# resource_pool_exclude = [] # Inventory paths to exclude
# resource_pool_metric_include = [] ## if omitted or empty, all metrics are collected
# resource_pool_metric_exclude = [] ## Nothing excluded by default
# resource_pool_instances = false ## false by default
## Custom resource_pool properties to collect.
## If the properties are text-based, they will be added as tags; otherwise, they will be added as metrics.
# resource_pool_property_include = []

## Datastores
# datastore_include = [ "/*/datastore/**"] # Inventory path to datastores to collect (by default all are collected)
# datastore_exclude = [] # Inventory paths to exclude
# datastore_metric_include = [] ## if omitted or empty, all metrics are collected
# datastore_metric_exclude = [] ## Nothing excluded by default
# datastore_instances = false ## false by default
## Custom datastore properties to collect.
## If the properties are text-based, they will be added as tags; otherwise, they will be added as metrics.
# datastore_property_include = []

## Datacenters
# datacenter_include = [ "/*/host/**"] # Inventory path to clusters to collect (by default all are collected)
# datacenter_exclude = [] # Inventory paths to exclude
datacenter_metric_include = [] ## if omitted or empty, all metrics are collected
datacenter_metric_exclude = [ "*" ] ## Datacenters are not collected by default.
# datacenter_instances = false ## false by default
## Custom cluster properties to collect.
## If the properties are text-based, they will be added as tags; otherwise, they will be added as metrics.
# datacenter_property_include = []

## VSAN
# vsan_metric_include = [] ## if omitted or empty, all metrics are collected
# vsan_metric_exclude = [ "*" ] ## vSAN are not collected by default.
## Whether to skip verifying vSAN metrics against the ones from GetSupportedEntityTypes API.
# vsan_metric_skip_verify = false ## false by default.
## Custom vsan properties to collect.
## If the properties are text-based, they will be added as tags; otherwise, they will be added as metrics.
# vsan_property_include = []

## Interval for sampling vSAN performance metrics, can be reduced down to
## 30 seconds for vSAN 8 U1.
Expand Down Expand Up @@ -952,6 +972,39 @@ disk.capacity.usage.average
* virtualDisk stats for VM
* disk (name of virtual disk)

#### Collect custom tag

**_property_include allow you to collect data that are not metrics.

For sample :

```toml
host_property_include = ["summary.runtime.powerState", "summary.overallStatus", "summary.runtime.inMaintenanceMode", "summary.runtime.connectionState"]
vm_property_include = ["runtime.powerState"]
cluster_property_include = ["summary.overallStatus"]
datastore_property_include = ["summary.accessible"]
resource_pool_property_include = ["overallStatus"]
```

All that tag will be added to "internal" metric that always contain "1".
It is recommanded to use it with processors.enum to convert as metric.

For sample :

```toml
[[processors.enum]]
[[processors.enum.mapping]]
## Names of the fields to map. Globs accepted.
tag = "powerstate"
default = 0

## Table of mappings
[processors.enum.mapping.value_mappings]
poweredOn = 1
suspended = 2
poweredOff = 3
```

## Add a vSAN extension

A vSAN resource is a special type of resource that can be collected by the
Expand Down
Loading
Loading