ManagedClusterAzureMonitorProfileMetrics Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ManagedClusterAzureMonitorProfileMetrics
- com.
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 Managed |
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
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
Managed |
kubeStateMetrics()
Get the kube |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
withEnabled(boolean enabled)
Set the enabled property: Whether to enable or disable the Azure Managed Prometheus addon for Prometheus monitoring. |
Managed |
withKubeStateMetrics(ManagedClusterAzureMonitorProfileKubeStateMetrics kubeStateMetrics)
Set the kube |
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:
fromJson
public static ManagedClusterAzureMonitorProfileMetrics fromJson(JsonReader jsonReader)
Reads an instance of ManagedClusterAzureMonitorProfileMetrics from the JsonReader.
Parameters:
Returns:
Throws:
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:
toJson
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java