Azure Web App
You can declare to scrape an Azure Web App via the WebApp
resource
type.
When using declared resources, the following fields need to be provided:
webAppName
- The name of the Azure Web AppslotName
- The name of the deployment slot (optional)
All supported metrics are documented in the official Azure Monitor documentation.
The following scraper-specific metric label will be added:
slot_name
- Name of the deployment slot. If none is specified,production
will be used.
Example:
name: azure_web_app_requests
description: "Amount of requests for an Azure Web App"
resourceType: WebApp
azureMetricConfiguration:
metricName: Requests
aggregation:
type: Total
resources: # Optional, required when no resource discovery is configured
- webAppName: promitor-web-app
slot: staging
- webAppName: promitor-web-app
slot: production
resourceDiscoveryGroups: # Optional, requires Promitor Resource Discovery agent (https://promitor.io/concepts/how-it-works#using-resource-discovery)
- name: web-app-landscape