Migrate from Custom metrics to Platform metrics
F5 NGINXaaS for Azure previously supported monitoring through Custom Metrics, 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.
Follow the steps in this section to migrate your deployment monitoring from Custom metrics to Platform metrics.
-
Verify that your NGINXaaS deployment meets the pre-requisites for Platform metrics to work.
-
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. -
Turn off legacy monitoring:
-
Using the Azure portal
- In the Azure portal, go to the NGINX monitoring page for your NGINXaaS deployment.
- Turn off the Send metrics to Azure Monitor setting.
- Select Save.
-
Using Terraform
- Set
diagnose_support_enabled
to false in theazurerm_nginx_deployment
resource. - Run
terraform plan
followed byterraform apply
to upgrade the deployment.
- Set
-
Using the Azure CLI Run the following command:
az nginx deployment update --name myDeployment --resource-group \ myResourceGroup --enable-diagnostics="false"
-