Skip to content

Commit 830d51c

Browse files
committed
resolve comments
1 parent 4977635 commit 830d51c

File tree

2 files changed

+63
-7
lines changed

2 files changed

+63
-7
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,13 @@ Deploy the template with the parameter file using any valid method for deploying
329329

330330
## Enable windows metrics collection
331331

332+
As of version `6.4.0-main-02-22-2023-3ee44b9e` windows metric collection has been enabled for the AKS clusters. Onboarding to the Azure Monitor Metrics Addon will enable the windows daemonset pods to start running on your nodepools(Windows Server 2019 and Windows Server 2022 are both supported). Please follow the below mentioned steps so that the pods are able to collect metrics from your windows nodepools.
333+
332334
- 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.
335+
- Please refer to the [customize configuration section](./prometheus-metrics-scrape-configuration.md#metrics-addon-settings-configmap) and enable the `windowsexporter` and `windowsexporter` boolean to true by applying the ama-metrics-settings-configmap on your cluster
336+
- Please use the CLI option `--enable-windows-recording-rules` and set it to true while onboarding to enable the recording rules required for the default dashboards
337+
- If using ARM/Bicep/Policy to onboard please enable the windows recording rules by settings `enableWindowsRecordingRules` to true in the parameters file.
338+
- If the cluster is already onbaorded to Azure Monitor Metrics and you want to enable windows recording rule groups. Please use the following [ARM Tempalte](https://github.com/Azure/prometheus-collector/blob/kaveesh/windows_recording_rules/AddonArmTemplate/WindowsRecordingRuleGroupTemplate/WindowsRecordingRules.json) and [Parameters](https://github.com/Azure/prometheus-collector/blob/kaveesh/windows_recording_rules/AddonArmTemplate/WindowsRecordingRuleGroupTemplate/WindowsRecordingRulesParameters.json) file to create the rule groups.
334339

335340

336341
## Verify Deployment

articles/azure-monitor/essentials/prometheus-metrics-scrape-default.md

Lines changed: 57 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ This article lists the default targets, dashboards, and recording rules when you
1515

1616
The default scrape frequency for all default targets and scrapes is **30 seconds**.
1717

18-
## Targets scraped
18+
## Targets scraped
1919

2020
- `cadvisor` (`job=cadvisor`)
2121
- `nodeexporter` (`job=node`)
2222
- `kubelet` (`job=kubelet`)
2323
- `kube-state-metrics` (`job=kube-state-metrics`)
24-
24+
2525
## Metrics collected from default targets
2626

27-
The following metrics are collected by default from each default target. All other metrics are dropped through relabeling rules.
27+
The following metrics are collected by default from each default target. All other metrics are dropped through relabeling rules.
2828

2929
**cadvisor (job=cadvisor)**<br>
3030
- `container_memory_rss`
@@ -38,7 +38,7 @@ The following metrics are collected by default from each default target. All oth
3838
- `container_fs_writes_total`
3939
- `container_fs_reads_bytes_total`
4040
- `container_fs_writes_bytes_total|container_cpu_usage_seconds_total`
41-
41+
4242
**kubelet (job=kubelet)**<br>
4343
- `kubelet_node_name`
4444
- `kubelet_running_pods`
@@ -79,7 +79,7 @@ The following metrics are collected by default from each default target. All oth
7979
- `process_cpu_seconds_total`
8080
- `go_goroutines`
8181
- `kubernetes_build_info`
82-
82+
8383
**nodexporter (job=node)**<br>
8484
- `node_memory_MemTotal_bytes`
8585
- `node_cpu_seconds_total`
@@ -105,7 +105,7 @@ The following metrics are collected by default from each default target. All oth
105105
- `node_disk_read_bytes_total`
106106
- `node_disk_written_bytes_total`
107107
- `node_uname_info`
108-
108+
109109
**kube-state-metrics (job=kube-state-metrics)**<br>
110110
- `kube_node_status_allocatable`
111111
- `kube_pod_owner`
@@ -135,6 +135,57 @@ The following metrics are collected by default from each default target. All oth
135135
- `kube_node_status_condition`
136136
- `kube_node_spec_taint`
137137

138+
## Targets scraped for windows
139+
140+
> [!NOTE]
141+
> This requires an update in the ama-metrics-settings-configmap and installing windows exporter on all windows nodepools. Please refer to the enablement document for more information.
142+
143+
- `windows-exporter` (`job=windows-exporter`)
144+
- `kube-proxy-windows` (`job=kube-proxy-windows`)
145+
146+
## Metrics scraped for windows
147+
148+
The following metrics are collected when windows exporter and windows kube proxy are enabled.
149+
150+
**windows-exporter (job=windows-exporter)**<br>
151+
- `windows_system_system_up_time`
152+
- `windows_cpu_time_total`
153+
- `windows_memory_available_bytes`
154+
- `windows_os_visible_memory_bytes`
155+
- `windows_memory_cache_bytes`
156+
- `windows_memory_modified_page_list_bytes`
157+
- `windows_memory_standby_cache_core_bytes`
158+
- `windows_memory_standby_cache_normal_priority_bytes`
159+
- `windows_memory_standby_cache_reserve_bytes`
160+
- `windows_memory_swap_page_operations_total`
161+
- `windows_logical_disk_read_seconds_total`
162+
- `windows_logical_disk_write_seconds_total`
163+
- `windows_logical_disk_size_bytes`
164+
- `windows_logical_disk_free_bytes`
165+
- `windows_net_bytes_total`
166+
- `windows_net_packets_received_discarded_total`
167+
- `windows_net_packets_outbound_discarded_total`
168+
- `windows_container_available`
169+
- `windows_container_cpu_usage_seconds_total`
170+
- `windows_container_memory_usage_commit_bytes`
171+
- `windows_container_memory_usage_private_working_set_bytes`
172+
- `windows_container_network_receive_bytes_total`
173+
- `windows_container_network_transmit_bytes_total`
174+
175+
**kube-proxy-windows (job=kube-proxy-windows)**<br>
176+
- `kubeproxy_sync_proxy_rules_duration_seconds`
177+
- `kubeproxy_sync_proxy_rules_duration_seconds_bucket`
178+
- `kubeproxy_sync_proxy_rules_duration_seconds_sum`
179+
- `kubeproxy_sync_proxy_rules_duration_seconds_count`
180+
- `rest_client_requests_total`
181+
- `rest_client_request_duration_seconds`
182+
- `rest_client_request_duration_seconds_bucket`
183+
- `rest_client_request_duration_seconds_sum`
184+
- `rest_client_request_duration_seconds_count`
185+
- `process_resident_memory_bytes`
186+
- `process_cpu_seconds_total`
187+
- `go_goroutines`
188+
138189
## Dashboards
139190

140191
Following are the default dashboards that are automatically provisioned and configured by Azure Monitor managed service for Prometheus when you [link your Azure Monitor workspace to an Azure Managed Grafana instance](../essentials/azure-monitor-workspace-manage.md#link-a-grafana-workspace). Source code for these dashboards can be found in [GitHub](https://aka.ms/azureprometheus-mixins)

0 commit comments

Comments
 (0)