Skip to content

Send DatastoreClusterMetric

AzureDevOps edited this page Sep 25, 2026 · 1 revision

Send-DatastoreClusterMetric

SYNOPSIS

Sends Datastore Cluster metrics to Influx.

SYNTAX

Send-DatastoreClusterMetric [[-Measure] <String>] [[-Tags] <String[]>] [[-DatastoreCluster] <String[]>]
 [[-Database] <String>] [[-Server] <String>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

DESCRIPTION

By default this cmdlet sends metrics for all Datastore Clusters returned by Get-DatastoreCluster.

EXAMPLES

EXAMPLE 1

Send-DatastoreClusterMetric -Measure 'TestDatastoreClusters' -Tags Name,Type -DatastoreCluster Test*

Description

This command will submit the specified tags and DatastoreCluster metrics to a measure called 'TestDatastoreClusters' for all DatastoreClusters starting with 'Test'

PARAMETERS

-Measure

The name of the measure to be updated or created.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: DatastoreCluster
Accept pipeline input: False
Accept wildcard characters: False

-Tags

An array of Datastore Cluster tags to be included. Default: 'Name'

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: Name
Accept pipeline input: False
Accept wildcard characters: False

-DatastoreCluster

One or more Datastore Clusters to be queried.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: *
Accept pipeline input: False
Accept wildcard characters: False

-Database

The 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: False

-Server

The 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: False

-WhatIf

Shows 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: False

-Confirm

Prompts 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

-ProgressAction

{{Fill ProgressAction Description}}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This 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).

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Clone this wiki locally