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
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -325,12 +325,17 @@ Deploy the template with the parameter file using any valid method for deploying
325
325
- 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.
326
326
- 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.
327
327
- 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
-
329
328
---
330
329
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
+
331
336
## Verify Deployment
332
337
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:
334
339
335
340
```
336
341
kubectl get ds ama-metrics-node --namespace=kube-system
@@ -344,6 +349,20 @@ NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SEL
344
349
ama-metrics-node 1 1 1 1 1 <none> 10h
345
350
```
346
351
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
+
347
366
Run the following command to which verify that the replica set was deployed properly:
348
367
349
368
```
@@ -373,6 +392,9 @@ If you don't already have it, install the aks-preview extension with the followi
373
392
374
393
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).
375
394
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
+
376
398
```azurecli
377
399
az extension add --name aks-preview
378
400
```
@@ -443,4 +465,3 @@ When you allow a default Azure Monitor workspace to be created when you install
443
465
- [Customize Prometheus metric scraping for the cluster](./prometheus-metrics-scrape-configuration.md).
444
466
- [Use Azure Monitor managed service for Prometheus (preview) as data source for Grafana](./prometheus-grafana.md)
445
467
- [Configure self-hosted Grafana to use Azure Monitor managed service for Prometheus (preview)](./prometheus-self-managed-grafana-azure-active-directory.md)
0 commit comments