Language

ArmMonitorModelFactory.PerformanceCountersOtelDataSource Method

Definition

Definition of which Open Telemetry performance counters will be collected and how they will be collected by this data collection rule. Collected from both Windows and Linux machines where the counter is present.

public static Azure.ResourceManager.Monitor.Models.PerformanceCountersOtelDataSource PerformanceCountersOtelDataSource(System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.KnownPerformanceCountersOtelDataSourceStreams> streams = default, int? samplingFrequencyInSeconds = default, System.Collections.Generic.IEnumerable<string> counterSpecifiers = default, string name = default);
static member PerformanceCountersOtelDataSource : seq<Azure.ResourceManager.Monitor.Models.KnownPerformanceCountersOtelDataSourceStreams> * Nullable<int> * seq<string> * string -> Azure.ResourceManager.Monitor.Models.PerformanceCountersOtelDataSource
Public Shared Function PerformanceCountersOtelDataSource (Optional streams As IEnumerable(Of KnownPerformanceCountersOtelDataSourceStreams) = Nothing, Optional samplingFrequencyInSeconds As Nullable(Of Integer) = Nothing, Optional counterSpecifiers As IEnumerable(Of String) = Nothing, Optional name As String = Nothing) As PerformanceCountersOtelDataSource

Parameters

streams
IEnumerable<KnownPerformanceCountersOtelDataSourceStreams>

List of streams that this data source will be sent to. A stream indicates what schema will be used for this data and usually what table in Log Analytics the data will be sent to.

samplingFrequencyInSeconds
Nullable<Int32>

The number of seconds between consecutive counter measurements (samples).

counterSpecifiers
IEnumerable<String>

A list of specifier names of the performance counters you want to collect.

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 PerformanceCountersOtelDataSource instance for mocking.

Applies to