|
1 | 1 | ---
|
2 |
| -title: Migrate from Custom Metrics to Platform Metrics |
| 2 | +title: Migrate from Custom metrics to Platform metrics |
3 | 3 | weight: 1000
|
4 | 4 | toc: true
|
5 | 5 | url: /nginxaas/azure/getting-started/migrate-to-platform-metrics/
|
|
8 | 8 | ---
|
9 | 9 |
|
10 | 10 | ## Overview
|
11 |
| -NGINXaaS previously supported monitoring using [Custom Metrics](https://learn.microsoft.com/en-us/azure/azure-monitor/metrics/metrics-custom-overview). Custom metrics is a preview feature in Azure and support for it will be dropped in the future. We have added support for Platform metrics which is the Azure recommended way for monitoring resources, we strongly recommend you to migrate your deployments monitoring to use Platform metrics to take advantage of reduced latency and higher reliability. |
12 | 11 |
|
13 |
| -## Migration Steps |
14 |
| -This section contains instructions on how to migrate your deployment monitoring from Custom Metrics to Platform Metrics. |
| 12 | +F5 NGINXaaS for Azure previously supported monitoring through [Custom Metrics](https://learn.microsoft.com/en-us/azure/azure-monitor/metrics/metrics-custom-overview), which is a preview feature in Azure. As a preview feature, support for Custom Metrics will be removed in the future. We've added support for Platform Metrics, which is the recommended way to monitor resources in Azure. We strongly recommend switching your deployment's monitoring to Platform Metrics to take advantage of lower latency and better reliability. |
15 | 13 |
|
16 |
| -1. Verify that your NGINXaaS deployment meets the [pre-requisites]({{< relref "/nginxaas-azure/monitoring/enable-monitoring.md#prerequisites">}}) for Platform metrics to work. |
17 |
| -2. If the per-requisites are met, Platform metrics are enabled by default on all NGINXaaS deployment. Verify that you are able to see the new metrics in Azure Monitor under the `Standard Metrics` namespace. |
18 |
| -3. Turn off legacy monitoring. |
| 14 | +## Migration steps |
19 | 15 |
|
20 |
| - - **Using Portal** |
21 |
| - 1. Go to the **NGINX monitoring** page of the NGINXaaS deployment in the Azure portal. |
22 |
| - 2. Toggle Off the `Send metrics to Azure Monitor` switch. |
23 |
| - 3. Click Save. |
| 16 | +Follow the steps in this section to migrate your deployment monitoring from Custom metrics to Platform metrics. |
24 | 17 |
|
25 |
| - - **Using Terraform** |
26 |
| - 1. Set `diagnose_support_enabled` to false in the `azurerm_nginx_deployment` resource. |
27 |
| - 2. Run `terraform plan` followed by `terraform apply` to upgrade the deployment. |
| 18 | +1. Verify that your NGINXaaS deployment meets the [pre-requisites]({{< ref "/nginxaas-azure/monitoring/enable-monitoring.md#prerequisites">}}) for Platform metrics to work. |
| 19 | +2. If the pre-requisites are met, Platform metrics are enabled by default on all NGINXaaS deployment. Verify that you are able to see the new metrics in Azure Monitor under the `Standard Metrics` namespace. |
| 20 | +3. Turn off legacy monitoring: |
28 | 21 |
|
29 |
| - - **Using Azure CLI** |
30 |
| - Run the command below: |
31 |
| - ```bash |
| 22 | + - Using the Azure portal |
| 23 | + 1. In the Azure portal, go to the **NGINX monitoring** page for your NGINXaaS deployment. |
| 24 | + 2. Turn off the **Send metrics to Azure Monitor** setting. |
| 25 | + 3. Select **Save**. |
| 26 | + |
| 27 | + - Using Terraform |
| 28 | + 1. Set `diagnose_support_enabled` to false in the `azurerm_nginx_deployment` resource. |
| 29 | + 2. Run `terraform plan` followed by `terraform apply` to upgrade the deployment. |
| 30 | + |
| 31 | + - Using the Azure CLI |
| 32 | + Run the following command: |
| 33 | + ```shell |
32 | 34 | az nginx deployment update --name myDeployment --resource-group \
|
33 | 35 | myResourceGroup --enable-diagnostics="false"
|
34 |
| - ``` |
| 36 | + ``` |
0 commit comments