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
Copy file name to clipboardExpand all lines: articles/azure-monitor/essentials/prometheus-metrics-enable.md
+54-54Lines changed: 54 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -345,7 +345,7 @@ As of version 6.4.0-main-02-22-2023-3ee44b9e, Windows metric collection has been
345
345
kubectl apply -f windows-exporter-daemonset.yaml
346
346
```
347
347
348
-
1. Apply the [ama-metrics-settings-configmap](https://github.com/Azure/prometheus-collector/blob/main/otelcollector/configmaps/ama-metrics-settings-configmap.yaml) to your cluster. Set the `windowsexporter` and `windowskubeproxy` Booleans to `true`. For more information, see [Metrics addon settings configmap](./prometheus-metrics-scrape-configuration.md#metrics-addon-settings-configmap).
348
+
1. Apply the [ama-metrics-settings-configmap](https://github.com/Azure/prometheus-collector/blob/main/otelcollector/configmaps/ama-metrics-settings-configmap.yaml) to your cluster. Set the `windowsexporter` and `windowskubeproxy` Booleans to `true`. For more information, see [Metrics add-on settings configmap](./prometheus-metrics-scrape-configuration.md#metrics-add-on-settings-configmap).
349
349
1. Enable the recording rules required for the default dashboards:
350
350
351
351
* For the CLI, include the option `--enable-windows-recording-rules`.
@@ -355,48 +355,48 @@ As of version 6.4.0-main-02-22-2023-3ee44b9e, Windows metric collection has been
355
355
356
356
## Verify deployment
357
357
358
-
Run the following command to verify that the DaemonSet was deployed properly on the Linux node pools:
358
+
1. Run the following command to verify that the DaemonSet was deployed properly on the Linux node pools:
359
359
360
-
```
361
-
kubectl get ds ama-metrics-node --namespace=kube-system
362
-
```
363
-
364
-
The number of pods should be equal to the number of nodes on the cluster. The output should resemble the following example:
365
-
366
-
```
367
-
User@aksuser:~$ kubectl get ds ama-metrics-node --namespace=kube-system
368
-
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
369
-
ama-metrics-node 1 1 1 1 1 <none> 10h
370
-
```
371
-
372
-
Run the following command to verify that the DaemonSet was deployed properly on the Windows node pools:
373
-
374
-
```
375
-
kubectl get ds ama-metrics-win-node --namespace=kube-system
376
-
```
377
-
378
-
The output should resemble the following example:
360
+
```
361
+
kubectl get ds ama-metrics-node --namespace=kube-system
362
+
```
379
363
380
-
```
381
-
User@aksuser:~$ kubectl get ds ama-metrics-node --namespace=kube-system
382
-
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
383
-
ama-metrics-win-node 3 3 3 3 3 <none> 10h
384
-
```
364
+
The number of pods should be equal to the number of nodes on the cluster. The output should resemble the following example:
365
+
366
+
```
367
+
User@aksuser:~$ kubectl get ds ama-metrics-node --namespace=kube-system
368
+
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
369
+
ama-metrics-node 1 1 1 1 1 <none> 10h
370
+
```
385
371
386
-
Run the following command to verify that the ReplicaSets were deployed properly:
372
+
1. Run the following command to verify that the DaemonSet was deployed properly on the Windows node pools:
387
373
388
-
```
389
-
kubectl get rs --namespace=kube-system
390
-
```
374
+
```
375
+
kubectl get ds ama-metrics-win-node --namespace=kube-system
376
+
```
377
+
378
+
The output should resemble the following example:
379
+
380
+
```
381
+
User@aksuser:~$ kubectl get ds ama-metrics-node --namespace=kube-system
382
+
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
383
+
ama-metrics-win-node 3 3 3 3 3 <none> 10h
384
+
```
391
385
392
-
The output should resemble the following example:
386
+
1. Run the following command to verify that the ReplicaSets were deployed properly:
393
387
394
-
```
395
-
User@aksuser:~$kubectl get rs --namespace=kube-system
396
-
NAME DESIRED CURRENT READY AGE
397
-
ama-metrics-5c974985b8 1 1 1 11h
398
-
ama-metrics-ksm-5fcf8dffcd 1 1 1 11h
399
-
```
388
+
```
389
+
kubectl get rs --namespace=kube-system
390
+
```
391
+
392
+
The output should resemble the following example:
393
+
394
+
```
395
+
User@aksuser:~$kubectl get rs --namespace=kube-system
Currently, the Azure CLI is the only option to remove the metrics add-on and stop sending Prometheus metrics to Azure Monitor managed service for Prometheus.
415
415
416
-
Install the `aks-preview` extension by using the following command:
417
-
418
-
```
419
-
az extension add --name aks-preview
420
-
```
421
-
422
-
For more information on installing a CLI extension, see [Use and manage extensions with the Azure CLI](/cli/azure/azure-cli-extensions-overview).
423
-
424
-
> [!NOTE]
425
-
> Upgrade your az cli version to the latest version and ensure that the aks-preview version you're using is at least '0.5.132'. Find your current version by using the `az version`.
416
+
1. Install the `aks-preview` extension by using the following command:
426
417
427
-
```azurecli
428
-
az extension add --name aks-preview
429
-
```
418
+
```
419
+
az extension add --name aks-preview
420
+
```
421
+
422
+
For more information on installing a CLI extension, see [Use and manage extensions with the Azure CLI](/cli/azure/azure-cli-extensions-overview).
423
+
424
+
> [!NOTE]
425
+
> Upgrade your az cli version to the latest version and ensure that the aks-preview version you're using is at least '0.5.132'. Find your current version by using the `az version`.
426
+
427
+
```azurecli
428
+
az extension add --name aks-preview
429
+
```
430
430
431
-
Use the following command to remove the agent from the cluster nodes and delete the recording rules created for the data being collected from the cluster, along with the DCRA that links the data collection endpoint or data collection rule with your cluster. This action doesn't remove the data collection endpoint, data collection rule, or the data already collected and stored in your Azure Monitor workspace.
431
+
1. Use the following command to remove the agent from the cluster nodes and delete the recording rules created for the data being collected from the cluster, along with the DCRA that links the data collection endpoint or data collection rule with your cluster. This action doesn't remove the data collection endpoint, data collection rule, or the data already collected and stored in your Azure Monitor workspace.
432
432
433
-
```azurecli
434
-
az aks update --disable-azuremonitormetrics -n <cluster-name> -g <cluster-resource-group>
435
-
```
433
+
```azurecli
434
+
az aks update --disable-azuremonitormetrics -n <cluster-name> -g <cluster-resource-group>
435
+
```
436
436
437
437
## Region mappings
438
438
When you allow a default Azure Monitor workspace to be created when you install the metrics add-on, it's created in the region listed in the following table.
0 commit comments