Sdílet prostřednictvím


ManagedClusterAzureMonitorProfileMetrics Class

Definition

Metrics profile for the Azure Monitor managed service for Prometheus addon. Collect out-of-the-box Kubernetes infrastructure metrics to send to an Azure Monitor Workspace and configure additional scraping for custom targets. See aka.ms/AzureManagedPrometheus for an overview.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ManagedClusterAzureMonitorProfileMetricsTypeConverter))]
public class ManagedClusterAzureMonitorProfileMetrics : Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterAzureMonitorProfileMetrics
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.ManagedClusterAzureMonitorProfileMetricsTypeConverter))>]
type ManagedClusterAzureMonitorProfileMetrics = class
    interface IManagedClusterAzureMonitorProfileMetrics
    interface IJsonSerializable
Public Class ManagedClusterAzureMonitorProfileMetrics
Implements IManagedClusterAzureMonitorProfileMetrics
Inheritance
ManagedClusterAzureMonitorProfileMetrics
Attributes
Implements

Constructors

ManagedClusterAzureMonitorProfileMetrics()

Creates an new ManagedClusterAzureMonitorProfileMetrics instance.

Properties

Enabled

Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. See aka.ms/AzureManagedPrometheus-aks-enable for details on enabling and disabling.

KubeStateMetricAnnotationsAllowList

Comma-separated list of Kubernetes annotation keys that will be used in the resource's labels metric (Example: 'namespaces=[kubernetes.io/team,...],pods=[kubernetes.io/team],...'). By default the metric contains only resource name and namespace labels.

KubeStateMetricLabelsAllowlist

Comma-separated list of additional Kubernetes label keys that will be used in the resource's labels metric (Example: 'namespaces=[k8s-label-1,k8s-label-n,...],pods=[app],...'). By default the metric contains only resource name and namespace labels.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ManagedClusterAzureMonitorProfileMetrics.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ManagedClusterAzureMonitorProfileMetrics.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Aks.Models.Api20230201.IManagedClusterAzureMonitorProfileMetrics.

FromJsonString(String)

Creates a new instance of ManagedClusterAzureMonitorProfileMetrics, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of ManagedClusterAzureMonitorProfileMetrics into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to