New-AzPrometheusForwarderDataSourceObject
Create an in-memory object for PrometheusForwarderDataSource.
Syntax
Default (Default)
New-AzPrometheusForwarderDataSourceObject
[-LabelIncludeFilter <Hashtable>]
[-Name <String>]
[-Stream <String[]>]
[<CommonParameters>]
Description
Create an in-memory object for PrometheusForwarderDataSource.
Examples
Example 1: Create prometheus forwarder data source object
New-AzPrometheusForwarderDataSourceObject -LabelIncludeFilter @{"microsoft_metrics_include_label"="MonitoringData"} -Name "myPromDataSource1" -Stream "Microsoft-PrometheusMetrics"
LabelIncludeFilter Name Stream
------------------ ---- ------
{… myPromDataSource1 {Microsoft-PrometheusMetrics}
This command creates a prometheus forwarder data source object.
Parameters
-LabelIncludeFilter
The list of label inclusion filters in the form of label "name-value" pairs. Currently only one label is supported: 'microsoft_metrics_include_label'. Label values are matched case-insensitively.
Parameter properties
Type: | Hashtable |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Stream
List of streams that this data source will be sent to.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.