Azure App Service monitoring integration

New Relic infrastructure monitoring provides an integration for Microsoft Azure App Service that reports data from Azure Apps Service to the New Relic platform. This document explains how to activate this integration and describes the data that can be captured.

Features

An Azure App Service is a service for hosting and running web applications, REST APIs, and mobile back ends in a fully managed platform. New Relic's integration for Azure App Service reports metric data about your Web Apps, including:

  • Number of requests received
  • Number of HTTP responses and errors

It also collects inventory data about the service's status and configuration. Using New Relic, you can:

  • View Azure Storage data in pre-built infrastructure dashboards.
  • Run custom queries and visualize the data in New Relic One.
  • Create alert conditions to notify you of changes in Storage data.

Activate integration

To enable the integration follow standard procedures to activate your Azure service in New Relic.

Configuration and polling

You can change the polling frequency and filter data using configuration options.

New Relic query your Azure App Services according to a default polling interval, which varies depending on the integration. Polling frequency for the Azure App Services integration:

  • Polling interval: 5 minutes
  • Resolution: 1 data point per minute

Find and use data

To explore your integration data, go to one.newrelic.com > Infrastructure > Azure.

The event types are:

  • AzureAppServiceWebAppSample: Represents each of the Azure App Service Web Apps in the account. Inventory data has a provider value of AzureAppServiceWebApp.
  • AzureAppServiceHostNameSample: Represents each of the domain names bound to a Web App that can be used for accessing it. Inventory data has a provider value of AzureAppServiceHostName.
  • AzureAppServicePlan: Represents a set of compute resources for a web app to run on.

Metric data

To view metrics reported by the Azure App Service integration, query the AzureAppServiceWebAppSample or AzureAppServicePlanSample event types. Use the metadata associated with each metric to filter and facet the data being reported. For detailed metric information, see the Azure supported metrics documentation.

WebApp Metrics

Metric Description Metadata
appConnections Average number of connections.

instance

averageMemoryWorkingSetBytes

Average memory working set, in bytes.

instance

averageResponseTimeSeconds

Average response time, in seconds.

instance

cpuTimeSeconds

Total CPU time, in seconds.

instance

currentAssemblies Average number of current assemblies.

instance

handles Average number of resources handled.

instance

gen0Collections Total number of Gen 0 garbage collections.

instance

gen1Collections Total number of Gen 1 garbage collections.

instance

gen2Collections Total number of Gen 2 garbage collections.

instance

http101

Total number of HTTP responses 101.

instance

http2xx

Total number of HTTP responses 200-299.

instance

http3xx

Total number of HTTP responses 300-399.

instance

http401

Total number of HTTP responses 401.

instance

http403

Total number of HTTP responses 403.

instance

http404

Total number of HTTP responses 404.

instance

http406

Total number of HTTP responses 406.

instance

http4xx

Total number of HTTP responses 400-499.

instance

http5xx

Total number of HTTP server errors 500-599.

instance

ioOtherBytesPerSecond Total number of IO Other bytes per second.

instance

ioOtherOperationsPerSecond Total number of IO Other operations per second.

instance

ioReadBytesPerSecond Total number of IO Read bytes per second.

instance

ioReadOperationsPerSecond Total number of IO Other operations bytes per second.

instance

ioWriteBytesPerSecond Total number of IO Write bytes per second.

instance

ioWriteOperationsPerSecond Total number of IO Other operations bytes per second.

instance

memoryWorkingSetBytes Total bytes of memory working set.

instance

privateBytes Average number of private bytes.

instance

requests Total number of requests to the app.

instance

requestsInApplicationQueue Average number of requests in application queue.

instance

receivedBytes Total number of bytes received by the app.

instance

sentBytes Total number of bytes sent by the app.

instance

threads Average number of threads.

instance

totalAppDomains Total App domains.

instance

totalAppDomainsUnloaded Total App domains unloaded.

instance

Service Plan Metrics

Metric Description Metadata

bytesReceivedBytes

Amount of data received by the application, in bytes.

instance

bytesSentBytes​

Amount of data received by the application, in bytes.

instance

​cpuPercent

CPU usage.

instance

diskQueueLength

Length of the disk queue. instance
httpQueueLength Length of the HTTP queue. instance

memoryPercent

Memory usage. instance

Inventory data

The Azure App Service integration reports the following inventory data about your system's state and configuration.

azure/appservice/webapp/

  • alwaysOn
  • availabilityState
  • clientAffinityEnabled
  • clientCertEnabled
  • containerSize
  • defaultDocuments
  • detailedErrorLoggingEnabled
  • enabled
  • hostNamesDisabled
  • httpLoggingEnabled
  • isPremiumApp
  • linuxFxVersion
  • loadBalancing
  • logsDirectorySizeLimit
  • managedPipelineMode
  • netFrameworkVersion
  • numberOfWorkers
  • operatingSystem
  • phpVersion
  • platformArchitecture
  • regionName
  • remoteDebuggingEnabled
  • resourceGroupName
  • scmSiteAlsoStopped
  • scmType
  • state
  • type
  • usageState
  • vnetName

azure/appservice/host-name

  • dnsRecordType
  • hostNameType
  • hostType
  • webAppName
  • name
  • providerAccountId
  • providerAccountName
  • sslState
  • virtualIp

azure/appservice/service-plan

  • capacity
  • maxInstances
  • numberOfWebApps
  • OperatingSystem
  • pricingTier
  • regionName
  • resourceGroupName
  • type

For more help

If you need more help, check out these support and learning resources: