Skip to content

Commit dced821

Browse files
Addressed comments
1 parent ee01c62 commit dced821

File tree

2 files changed

+13
-49
lines changed

2 files changed

+13
-49
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.custom: template-how-to-pattern, devx-track-azurecli
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

1717
> [!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](/azure/aks/network-observability-managed-cli).
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
1919
>
2020
2121
> [!IMPORTANT]

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

Lines changed: 12 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ az group create \
8181
> [!NOTE]
8282
>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.
8383
>
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+
>
8486
8587
## Create AKS cluster
8688

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