Skip to content

Commit 4684af6

Browse files
authored
Update prometheus-metrics-enable.md
1 parent 2c79edd commit 4684af6

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

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

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,17 @@ Deploy the template with the parameter file using any valid method for deploying
325325
- Ensure that you update the `kube-state metrics` Annotations and Labels list with proper formatting. There's a limitation in the Resource Manager template deployments that require exact values in the `kube-state` metrics pods. If the kuberenetes pod has any issues with malformed parameters and isn't running, then the feature won't work as expected.
326326
- A data collection rule and data collection endpoint is created with the name `MSProm-\<short-cluster-region\>-\<cluster-name\>`. These names can't currently be modified.
327327
- You must get the existing Azure Monitor workspace integrations for a Grafana workspace and update the Resource Manager template with it, otherwise it will overwrite and remove the existing integrations from the grafana workspace.
328-
329328
---
330329

330+
## Enable windows metrics collection
331+
332+
- For accessing windows metrics you must manually install the windows exporter on AKS nodes. Please enable the following collectors : `[defaults],container,memory,process,cpu_info`. You can deploy the following [YAML](https://github.com/prometheus-community/windows_exporter/blob/master/kubernetes/windows-exporter-daemonset.yaml) file using `kubectl apply -f windows-exporter-daemonset.yaml`
333+
- Please refer to the [customize configuration section](./prometheus-metrics-scrape-configuration.md#metrics-addon-settings-configmap) and enable the `windowsexporter` boolean to true.
334+
335+
331336
## Verify Deployment
332337

333-
Run the following command to verify that the daemon set was deployed properly:
338+
Run the following command to verify that the daemon set was deployed properly on the linux nodepools:
334339

335340
```
336341
kubectl get ds ama-metrics-node --namespace=kube-system
@@ -344,6 +349,20 @@ NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SEL
344349
ama-metrics-node 1 1 1 1 1 <none> 10h
345350
```
346351

352+
Run the following command to verify that the daemon set was deployed properly on the windows nodepools:
353+
354+
```
355+
kubectl get ds ama-metrics-win-node --namespace=kube-system
356+
```
357+
358+
The output should resemble the following:
359+
360+
```
361+
User@aksuser:~$ kubectl get ds ama-metrics-node --namespace=kube-system
362+
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
363+
ama-metrics-win-node 3 3 3 3 3 <none> 10h
364+
```
365+
347366
Run the following command to which verify that the replica set was deployed properly:
348367

349368
```
@@ -373,6 +392,9 @@ If you don't already have it, install the aks-preview extension with the followi
373392

374393
The `aks-preview` extension needs to be installed using the following command. For more information on how to install a CLI extension, see [Use and manage extensions with the Azure CLI](/cli/azure/azure-cli-extensions-overview).
375394

395+
> [!NOTE]
396+
> Please upgrade your az cli version to the latest version and ensure that the aks-preview version you're using is greater than '0.5.106'. You can find out the version using the `az version` command.
397+
376398
```azurecli
377399
az extension add --name aks-preview
378400
```
@@ -443,4 +465,3 @@ When you allow a default Azure Monitor workspace to be created when you install
443465
- [Customize Prometheus metric scraping for the cluster](./prometheus-metrics-scrape-configuration.md).
444466
- [Use Azure Monitor managed service for Prometheus (preview) as data source for Grafana](./prometheus-grafana.md)
445467
- [Configure self-hosted Grafana to use Azure Monitor managed service for Prometheus (preview)](./prometheus-self-managed-grafana-azure-active-directory.md)
446-

0 commit comments

Comments
 (0)