Język

ArmMonitorModelFactory.PrometheusForwarderDataSource Method

Definition

Definition of Prometheus metrics forwarding configuration.

public static Azure.ResourceManager.Monitor.Models.PrometheusForwarderDataSource PrometheusForwarderDataSource(System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.DataCollectionRuleKnownPrometheusForwarderDataSourceStream> streams = default, System.Collections.Generic.IDictionary<string,string> labelIncludeFilter = default, System.Collections.Generic.IEnumerable<BinaryData> customVMScrapeConfig = default, string name = default);
static member PrometheusForwarderDataSource : seq<Azure.ResourceManager.Monitor.Models.DataCollectionRuleKnownPrometheusForwarderDataSourceStream> * System.Collections.Generic.IDictionary<string, string> * seq<BinaryData> * string -> Azure.ResourceManager.Monitor.Models.PrometheusForwarderDataSource
Public Shared Function PrometheusForwarderDataSource (Optional streams As IEnumerable(Of DataCollectionRuleKnownPrometheusForwarderDataSourceStream) = Nothing, Optional labelIncludeFilter As IDictionary(Of String, String) = Nothing, Optional customVMScrapeConfig As IEnumerable(Of BinaryData) = Nothing, Optional name As String = Nothing) As PrometheusForwarderDataSource

Parameters

streams
IEnumerable<DataCollectionRuleKnownPrometheusForwarderDataSourceStream>

List of streams that this data source will be sent to.

labelIncludeFilter
IDictionary<String,String>

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.

customVMScrapeConfig
IEnumerable<BinaryData>

Custom VM Scrape Config that defines scrape jobs.

name
String

A friendly name for the data source. This name should be unique across all data sources (regardless of type) within the data collection rule.

Returns

A new PrometheusForwarderDataSource instance for mocking.

Applies to