ManagedClusterAzureMonitorProfileKubeStateMetrics Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfileKubeStateMetrics

Implements

public final class ManagedClusterAzureMonitorProfileKubeStateMetrics
implements JsonSerializable<ManagedClusterAzureMonitorProfileKubeStateMetrics>

Kube State Metrics profile for the Azure Managed Prometheus addon. These optional settings are for the kube-state-metrics pod that is deployed with the addon. See aka.ms/AzureManagedPrometheus-optional-parameters for details.

Constructor Summary

Constructor Description
ManagedClusterAzureMonitorProfileKubeStateMetrics()

Creates an instance of ManagedClusterAzureMonitorProfileKubeStateMetrics class.

Method Summary

Modifier and Type Method and Description
static ManagedClusterAzureMonitorProfileKubeStateMetrics fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfileKubeStateMetrics from the JsonReader.

String metricAnnotationsAllowList()

Get the metricAnnotationsAllowList property: 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],...').

String metricLabelsAllowlist()

Get the metricLabelsAllowlist property: 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],...').

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterAzureMonitorProfileKubeStateMetrics withMetricAnnotationsAllowList(String metricAnnotationsAllowList)

Set the metricAnnotationsAllowList property: 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],...').

ManagedClusterAzureMonitorProfileKubeStateMetrics withMetricLabelsAllowlist(String metricLabelsAllowlist)

Set the metricLabelsAllowlist property: 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],...').

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterAzureMonitorProfileKubeStateMetrics

public ManagedClusterAzureMonitorProfileKubeStateMetrics()

Creates an instance of ManagedClusterAzureMonitorProfileKubeStateMetrics class.

Method Details

fromJson

public static ManagedClusterAzureMonitorProfileKubeStateMetrics fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfileKubeStateMetrics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedClusterAzureMonitorProfileKubeStateMetrics if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ManagedClusterAzureMonitorProfileKubeStateMetrics.

metricAnnotationsAllowList

public String metricAnnotationsAllowList()

Get the metricAnnotationsAllowList property: 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.

Returns:

the metricAnnotationsAllowList value.

metricLabelsAllowlist

public String metricLabelsAllowlist()

Get the metricLabelsAllowlist property: 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.

Returns:

the metricLabelsAllowlist value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMetricAnnotationsAllowList

public ManagedClusterAzureMonitorProfileKubeStateMetrics withMetricAnnotationsAllowList(String metricAnnotationsAllowList)

Set the metricAnnotationsAllowList property: 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.

Parameters:

metricAnnotationsAllowList - the metricAnnotationsAllowList value to set.

Returns:

the ManagedClusterAzureMonitorProfileKubeStateMetrics object itself.

withMetricLabelsAllowlist

public ManagedClusterAzureMonitorProfileKubeStateMetrics withMetricLabelsAllowlist(String metricLabelsAllowlist)

Set the metricLabelsAllowlist property: 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.

Parameters:

metricLabelsAllowlist - the metricLabelsAllowlist value to set.

Returns:

the ManagedClusterAzureMonitorProfileKubeStateMetrics object itself.

Applies to