You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AKS] Add --enable-control-plane-metrics and --disable-control-plane-metrics for Managed Prometheus
Add CLI support for the ManagedClusterAzureMonitorProfileMetricsControlPlane
feature, which enables collection of control plane component metrics
(kube-apiserver, etcd, etc.) via the Azure Managed Prometheus addon.
Changes:
- Add --enable-control-plane-metrics param for aks create and update
- Add --disable-control-plane-metrics param for aks create and update
- Add getter/validator methods with mutual exclusivity checks
- Add validation: control plane metrics flags require --enable-azure-monitor-metrics
or that Azure Monitor Metrics is already enabled on the cluster
- Wire control_plane into set_up/update_azure_monitor_profile decorators
- Add help text for all new parameters
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/azure-cli/azure/cli/command_modules/acs/_help.py
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -534,6 +534,12 @@
534
534
- name: --enable-windows-recording-rules
535
535
type: bool
536
536
short-summary: Enable Windows Recording Rules when enabling the Azure Monitor Metrics addon
537
+
- name: --enable-control-plane-metrics
538
+
type: bool
539
+
short-summary: Enable collection of control plane metrics for the Azure Managed Prometheus addon. Configures collection of operational runtime metrics from managed control plane components (kube-apiserver, etcd, etc). See aka.ms/aks/controlplane-metrics for details. Must be used with --enable-azure-monitor-metrics.
540
+
- name: --disable-control-plane-metrics
541
+
type: bool
542
+
short-summary: Disable collection of control plane metrics for the Azure Managed Prometheus addon.
537
543
- name: --nodepool-taints
538
544
type: string
539
545
short-summary: The node taints for all node pool.
@@ -1063,6 +1069,12 @@
1063
1069
- name: --disable-azure-monitor-metrics
1064
1070
type: bool
1065
1071
short-summary: Disable Azure Monitor Metrics Profile. This will delete all DCRA's associated with the cluster, any linked DCRs with the data stream = prometheus-stream and the recording rule groups created by the addon for this AKS cluster.
1072
+
- name: --enable-control-plane-metrics
1073
+
type: bool
1074
+
short-summary: Enable collection of control plane metrics for the Azure Managed Prometheus addon. Configures collection of operational runtime metrics from managed control plane components (kube-apiserver, etcd, etc). See aka.ms/aks/controlplane-metrics for details.
1075
+
- name: --disable-control-plane-metrics
1076
+
type: bool
1077
+
short-summary: Disable collection of control plane metrics for the Azure Managed Prometheus addon.
0 commit comments