Class ManagedClusterAzureMonitorProfileKubeStateMetrics

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

public final class ManagedClusterAzureMonitorProfileKubeStateMetrics extends Object
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 Details

    • ManagedClusterAzureMonitorProfileKubeStateMetrics

      public ManagedClusterAzureMonitorProfileKubeStateMetrics()
      Creates an instance of ManagedClusterAzureMonitorProfileKubeStateMetrics class.
  • Method Details

    • 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.
    • 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.
    • 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.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.