Repository navigation
Send VMMetric
Sends Virtual Machine metrics to Influx.
Send-VMMetric [[-Measure] <String>] [[-Tags] <String[]>] [[-VMs] <String[]>] [-Stats] [[-Database] <String>]
[[-Server] <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
By default this cmdlet sends metrics for all Virtual Machines returned by Get-VM.
Send-VMMetric -Measure 'TestVirtualMachines' -Tags Name,ResourcePool -Hosts TestVM*
This command will submit the specified tag and common VM host data to a measure called 'TestVirtualMachines' for all VMs starting with 'TestVM'
The name of the measure to be updated or created.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: VirtualMachine
Accept pipeline input: False
Accept wildcard characters: FalseAn array of virtual machine tags to be included. Default: 'Name','Folder','ResourcePool','PowerState','Guest','VMHost'
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: ('Name', 'Folder', 'ResourcePool', 'PowerState', 'Guest', 'VMHost')
Accept pipeline input: False
Accept wildcard characters: FalseOne or more Virtual Machines to be queried.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: *
Accept pipeline input: False
Accept wildcard characters: FalseUse to enable the collection of VM statistics via Get-Stat for each VM.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseThe name of the Influx database to write to. Default: 'vmware'. This must exist in Influx!
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: Vmware
Accept pipeline input: False
Accept wildcard characters: FalseThe URL and port for the Influx REST API. Default: 'http://localhost:8086'
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: Http://localhost:8086
Accept pipeline input: False
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePrompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False{{Fill ProgressAction Description}}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).