ManagedClusterAzureMonitorProfileMetrics Class

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

Implements

public final class ManagedClusterAzureMonitorProfileMetrics
implements JsonSerializable<ManagedClusterAzureMonitorProfileMetrics>

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.

Constructor Summary

Constructor Description
ManagedClusterAzureMonitorProfileMetrics()

Creates an instance of ManagedClusterAzureMonitorProfileMetrics class.

Method Summary

Modifier and Type Method and Description
boolean enabled()

Get the enabled property: Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring.

static ManagedClusterAzureMonitorProfileMetrics fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfileMetrics from the JsonReader.

ManagedClusterAzureMonitorProfileKubeStateMetrics kubeStateMetrics()

Get the kubeStateMetrics property: Kube State Metrics profile for the Azure Managed Prometheus addon.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterAzureMonitorProfileMetrics withEnabled(boolean enabled)

Set the enabled property: Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring.

ManagedClusterAzureMonitorProfileMetrics withKubeStateMetrics(ManagedClusterAzureMonitorProfileKubeStateMetrics kubeStateMetrics)

Set the kubeStateMetrics property: Kube State Metrics profile for the Azure Managed Prometheus addon.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterAzureMonitorProfileMetrics

public ManagedClusterAzureMonitorProfileMetrics()

Creates an instance of ManagedClusterAzureMonitorProfileMetrics class.

Method Details

enabled

public boolean enabled()

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

Returns:

the enabled value.

fromJson

public static ManagedClusterAzureMonitorProfileMetrics fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAzureMonitorProfileMetrics from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

kubeStateMetrics

public ManagedClusterAzureMonitorProfileKubeStateMetrics kubeStateMetrics()

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

Returns:

the kubeStateMetrics value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public ManagedClusterAzureMonitorProfileMetrics withEnabled(boolean enabled)

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

Parameters:

enabled - the enabled value to set.

Returns:

the ManagedClusterAzureMonitorProfileMetrics object itself.

withKubeStateMetrics

public ManagedClusterAzureMonitorProfileMetrics withKubeStateMetrics(ManagedClusterAzureMonitorProfileKubeStateMetrics kubeStateMetrics)

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

Parameters:

kubeStateMetrics - the kubeStateMetrics value to set.

Returns:

the ManagedClusterAzureMonitorProfileMetrics object itself.

Applies to