Skip to content

Commit 15a4e1b

Browse files
committed
edit pass: essentials-articles-batch-4
1 parent 3440018 commit 15a4e1b

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

articles/azure-monitor/essentials/prometheus-metrics-enable.md

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ As of version 6.4.0-main-02-22-2023-3ee44b9e, Windows metric collection has been
345345
kubectl apply -f windows-exporter-daemonset.yaml
346346
```
347347

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).
349349
1. Enable the recording rules required for the default dashboards:
350350

351351
* 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
355355

356356
## Verify deployment
357357

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:
359359

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+
```
379363

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+
```
385371

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:
387373

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+
```
391385

392-
The output should resemble the following example:
386+
1. Run the following command to verify that the ReplicaSets were deployed properly:
393387

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
396+
NAME DESIRED CURRENT READY AGE
397+
ama-metrics-5c974985b8 1 1 1 11h
398+
ama-metrics-ksm-5fcf8dffcd 1 1 1 11h
399+
```
400400

401401
## Feature support
402402

@@ -413,26 +413,26 @@ ama-metrics-ksm-5fcf8dffcd 1 1 1 11h
413413
## Uninstall the metrics add-on
414414
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.
415415

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:
426417

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+
```
430430

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.
432432

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+
```
436436

437437
## Region mappings
438438
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

Comments
 (0)