Enable Monitoring

Learn how to monitor NGINX as a Service for Azure.

You can report on your application telemetry from your NGINXaaS for Azure deployment to Azure Monitor. Within Azure Monitor, you can review all the metrics, correlate them, analyze them, and create alerts for proactive monitoring.

Note:
NGINXaaS for Azure publishes custom metrics to Azure Monitor. To learn about the differences between standard and custom metrics, refer to the Custom metrics in Azure Monitor overview documentation from Microsoft.

Prerequisites

  • A user assigned managed identity or a system assigned managed identity with Monitoring Metrics Publisher role.
Note:
When a user assigned managed identity or a system assigned managed identity is added to the deployment through portal, this role is automatically added.
  • User must be an owner or user access administrator for NGINX deployment resource to complete this set up.

  • If you’re unfamiliar with Azure Monitor, refer to the Azure monitor overview documentation from Microsoft.

Enable Monitoring

  1. Go to your NGINXaaS for Azure deployment.

  2. Select NGINX monitoring in the left menu.

    NGINX Monitoring tab
  3. Enable Send metrics to Azure Monitor.

    Enable NGINX Monitoring
  4. Select Metrics in the left-hand navigation pane, and query the metrics reported. Refer to the Azure Monitor Metrics Explorer documentation from Microsoft to learn how you can create queries.

    Azure Metrics Explorer
Note:
Many of NGINX+’s advanced statistics need to be enabled in nginx.conf before they will appear; e.g. plus.http.request.bytes_*. Refer to Gathering Data to Appear in Statistics.