Skip to content

Commit d11a306

Browse files
Merge pull request #267100 from Khushbu-Parekh/patch-5
Update network-observability-managed-cli.md
2 parents 2cee61e + ac2806f commit d11a306

File tree

2 files changed

+21
-48
lines changed

2 files changed

+21
-48
lines changed

articles/aks/network-observability-byo-cli.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ ms.custom: template-how-to-pattern, devx-track-azurecli
1414

1515
AKS Network Observability is used to collect the network traffic data of your AKS cluster. Network Observability enables a centralized platform for monitoring application and network health. Prometheus collects AKS Network Observability metrics, and Grafana visualizes them. Both Cilium and non-Cilium data plane are supported. In this article, learn how to enable the Network Observability add-on and use BYO Prometheus and Grafana to visualize the scraped metrics.
1616

17+
> [!NOTE]
18+
>Starting with Kubernetes version 1.29, the network observability feature no longer supports Bring Your Own (BYO) Prometheus and Grafana. However, you can still enable it using the Azure Managed Prometheus and Grafana offering
19+
>
20+
1721
> [!IMPORTANT]
1822
> AKS Network Observability is currently in PREVIEW.
1923
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.

articles/aks/network-observability-managed-cli.md

Lines changed: 17 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ az group create \
7878
--name myResourceGroup \
7979
--location eastus
8080
```
81+
> [!NOTE]
82+
>For Kubernetes version 1.29 or higher, network observability is enabled with the [AMA metrics profile](/azure/azure-monitor/containers/prometheus-metrics-scrape-configuration) and the AFEC flag (NetworkObservabilityPreview) until it reaches general availability.
83+
>
84+
>Starting with Kubernetes version 1.29, the --enable-network-observability tag is no longer required when creating or updating an Azure Kubernetes Service (AKS) cluster.
85+
>
86+
>For AKS clusters running Kubernetes version 1.28 or earlier, enabling network observability requires the --enable-network-observability tag during cluster creation or update.
87+
>
8188
8289
## Create AKS cluster
8390

@@ -232,57 +239,19 @@ az aks get-credentials --name myAKSCluster --resource-group myResourceGroup
232239
> [!NOTE]
233240
> The following section requires deployments of Azure managed Prometheus and Grafana.
234241
235-
>[!WARNING]
236-
> File should only be named as **`prometheus-config`**. Do not add any extensions like .yaml or .txt.
237-
238-
1. Use the following example to create a file named **`prometheus-config`**. Copy the code in the example into the file created.
239-
240-
```yaml
241-
global:
242-
scrape_interval: 30s
243-
scrape_configs:
244-
- job_name: "cilium-pods"
245-
kubernetes_sd_configs:
246-
- role: pod
247-
relabel_configs:
248-
- source_labels: [__meta_kubernetes_pod_container_name]
249-
action: keep
250-
regex: cilium-agent
251-
- source_labels:
252-
[__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
253-
separator: ":"
254-
regex: ([^:]+)(?::\d+)?
255-
target_label: __address__
256-
replacement: ${1}:${2}
257-
action: replace
258-
- source_labels: [__meta_kubernetes_pod_node_name]
259-
action: replace
260-
target_label: instance
261-
- source_labels: [__meta_kubernetes_pod_label_k8s_app]
262-
action: replace
263-
target_label: k8s_app
264-
- source_labels: [__meta_kubernetes_pod_name]
265-
action: replace
266-
regex: (.*)
267-
target_label: pod
268-
metric_relabel_configs:
269-
- source_labels: [__name__]
270-
action: keep
271-
regex: (.*)
272-
```
273-
274-
1. To create the `configmap`, use the following example:
275-
276-
```azurecli-interactive
277-
kubectl create configmap ama-metrics-prometheus-config \
278-
--from-file=./prometheus-config \
279-
--namespace kube-system
280-
```
281-
282242
1. Azure Monitor pods should restart themselves, if they don't, rollout restart with following command:
283243
284244
```azurecli-interactive
285-
kubectl rollout restart deploy -n kube-system ama-metrics
245+
kubectl get po -owide -n kube-system | grep ama-
246+
```
247+
248+
```output
249+
ama-metrics-5bc6c6d948-zkgc9 2/2 Running 0 (21h ago) 26h
250+
ama-metrics-ksm-556d86b5dc-2ndkv 1/1 Running 0 (26h ago) 26h
251+
ama-metrics-node-lbwcj 2/2 Running 0 (21h ago) 26h
252+
ama-metrics-node-rzkzn 2/2 Running 0 (21h ago) 26h
253+
ama-metrics-win-node-gqnkw 2/2 Running 0 (26h ago) 26h
254+
ama-metrics-win-node-tkrm8 2/2 Running 0 (26h ago) 26h
286255
```
287256
288257
1. Once the Azure Monitor pods have been deployed on the cluster, port forward to the `ama` pod to verify the pods are being scraped. Use the following example to port forward to the pod:

0 commit comments

Comments
 (0)