Skip to content

Commit 180f2c8

Browse files
committed
add images
1 parent 7d122e2 commit 180f2c8

File tree

4 files changed

+29
-17
lines changed

4 files changed

+29
-17
lines changed

articles/storage/container-storage/enable-monitoring.md

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to enable monitoring for stateful workloads running on Az
44
author: khdownie
55
ms.service: azure-container-storage
66
ms.topic: how-to
7-
ms.date: 01/02/2025
7+
ms.date: 01/03/2025
88
ms.author: kendownie
99
---
1010

@@ -16,18 +16,20 @@ You can now monitor your stateful workloads running on Azure Container Storage s
1616

1717
Prometheus metrics are stored in an Azure Monitor workspace, where you can analyze and visualize the data using [Azure Monitor Metrics Explorer with PromQL (preview)](/azure/azure-monitor/essentials/metrics-explorer) and [Azure Managed Grafana](/azure/managed-grafana/overview).
1818

19-
> [!NOTE]
20-
> Azure Managed Grafana default dashboard support isn't currently enabled for Azure Container Storage.
19+
## Prerequisites and limitations
20+
21+
This preview feature only supports Azure Monitor managed service for Prometheus. If you have your own Prometheus instance deployed, then you must disable Azure Container Storage's Prometheus instance by running the following Azure CLI command. Replace `<cluster_name>` and `<resource_group_name>` with your own values.
22+
23+
```azurecli
24+
az k8s-extension update --cluster-type managedClusters --cluster-name <cluster_name> --resource-group <resource_group_name> --name azurecontainerstorage --config base.metrics.enablePrometheusStack=false
25+
```
26+
27+
Azure Managed Grafana default dashboard support isn't currently enabled for Azure Container Storage.
2128

2229
## Collect Azure Container Storage Prometheus metrics
2330

2431
You can use Azure Monitor managed service for Prometheus to collect Azure Container Storage metrics along with other Prometheus metrics from your AKS cluster. To start collecting Azure Container Storage metrics, [enable Managed Prometheus on the AKS cluster](/azure/azure-monitor/containers/kubernetes-monitoring-enable?tabs=cli#enable-prometheus-and-grafana). If your AKS cluster already has Prometheus enabled, then installing Azure Container Storage on that cluster will automatically start collecting Azure Container Storage metrics.
2532

26-
> [!IMPORTANT]
27-
> This feature only supports Azure Monitor managed service for Prometheus. If you have your own Prometheus instance deployed, then you must first disable Azure Container Storage's Prometheus instance by running the following Azure CLI command. Replace `<cluster_name>` and `<resource_group_name>` with your own values.
28-
>
29-
> `az k8s-extension update --cluster-type managedClusters --cluster-name <cluster_name> --resource-group <resource_group_name> --name azurecontainerstorage --config base.metrics.enablePrometheusStack=false`
30-
3133
### Scrape frequency and metrics collected for default targets
3234

3335
The default scrape frequency for all default targets and scrapes is 30 seconds.
@@ -37,6 +39,10 @@ The following Azure Container Storage targets are enabled by default, which
3739
- `acstor-capacity-provisioner` (storage pool metrics)
3840
- `acstor-metrics-exporter` (disk metrics)
3941

42+
You can customize data collection for these default targets using the Managed Prometheus ConfigMap. See [Customize scraping of Prometheus metrics in Azure Monitor](/azure/azure-monitor/containers/prometheus-metrics-scrape-configuration).
43+
44+
#### Storage pool metrics
45+
4046
Azure Container Storage provides the following storage pool metrics collected from the `acstor-capacity-provisioner` target (job=acstor-capacity-provisioner):
4147

4248
| **Metric** | **Description** |
@@ -46,6 +52,8 @@ Azure Container Storage provides the following storage pool metrics collected fr
4652
| `storage_pool_capacity_used_bytes` | Storage pool capacity used in bytes from the provisioned storage pool capacity. |
4753
| `storage_pool_snapshot_capacity_reserved_bytes` | Storage pool capacity reserved in bytes for storing local snapshots. |
4854

55+
#### Disk metrics
56+
4957
Azure Container Storage provides the following disk metrics collected from the `acstor-metrics-exporter` target (job=acstor-metrics-exporter):
5058

5159
| **Metric** | **Description** |
@@ -60,23 +68,27 @@ Azure Container Storage provides the following disk metrics collected from the `
6068
| `disk_written_bytes_total` | The total number of bytes written successfully. |
6169
| `disk_readonly_errors_gauge` | This is a gauge metric to measure read-only volume mounts. |
6270

63-
You can customize data collection for the default targets using the Managed Prometheus ConfigMap. See [Customize scraping of Prometheus metrics in Azure Monitor](/azure/azure-monitor/containers/prometheus-metrics-scrape-configuration).
64-
6571
## Query Azure Container Storage metrics
6672

67-
Azure Container Storage metrics are stored in the Azure Monitor workspace that's associated with Managed Prometheus. You can query the metrics directly from the workspace or through the Azure Managed Grafana instance that's connected to the workspace.
73+
Azure Container Storage metrics are stored in the Azure Monitor workspace that's associated with Managed Prometheus. You can query metrics directly from the workspace or through the Azure Managed Grafana instance that's connected to the workspace.
74+
75+
To view Azure Container Storage metrics in the Azure Monitor workspace, follow these steps:
76+
77+
1. Sign in to the [Azure portal](https://portal.azure.com?azure-portal=true) and navigate to your AKS cluster.
78+
79+
1. From the service menu, under **Monitoring**, select **Insights**, and then select **Monitor Settings**.
6880

69-
To view Azure Container Storage metrics in the Azure Monitor Workspace, use the following steps:
81+
:::image type="content" source="media/enable-monitoring/monitor-settings.png" alt-text="Screenshot showing how to find Monitor Settings in the Azure portal." lightbox="media/enable-monitoring/monitor-settings.png":::
7082

71-
1. Sign into the Azure portal and navigate to your AKS cluster.
83+
1. Under **Managed Prometheus**, select the appropriate Azure Monitor workspace instance. On the instance overview page, select the **Metrics** section, and query the desired metrics.
7284

73-
1. Under **Monitoring**, select **Insights** and then select **Monitor Settings**.
85+
:::image type="content" source="media/enable-monitoring/metrics.png" alt-text="Screenshot showing how to query Azure Container Storage metrics using the Azure portal." lightbox="media/enable-monitoring/metrics.png":::
7486

75-
1. Select the appropriate Azure Monitor Workspace instance. On the instance overview page, click on the **Metrics** section.
87+
1. Alternatively, you can select the Managed Grafana instance, and on the instance overview page, click on the Endpoint URL. This will navigate to the Grafana portal where you can query the Azure Container Storage metrics. The data source will be automatically configured for you to query metrics from the associated Azure Monitor workspace.
7688

77-
1. Alternatively, you can select the Managed Grafana instance, and on the instance overview page, click on the Endpoint URL. This will navigate to the Grafana portal where you can query the Azure Container Storage metrics. The data source will be automatically configured for you to query metrics from the associated Azure Monitor Workspace.
89+
:::image type="content" source="media/enable-monitoring/dashboard.png" alt-text="Screenshot of an Azure Managed Prometheus dashboard and metrics browser." lightbox="media/enable-monitoring/dashboard.png":::
7890

79-
To learn more about querying Prometheus metrics from Azure Monitor Workspace, see [Use Azure Monitor managed service for Prometheus as data source for Grafana](/azure/azure-monitor/essentials/prometheus-grafana).
91+
To learn more about querying Prometheus metrics from Azure Monitor workspace, see [Use Azure Monitor managed service for Prometheus as data source for Grafana](/azure/azure-monitor/essentials/prometheus-grafana).
8092

8193
## Next steps
8294

132 KB
Loading
72.3 KB
Loading
230 KB
Loading

0 commit comments

Comments
 (0)