Generic Azure Resource -
You can declare to scrape a generic Azure resource via the Generic
resource type.
The following fields need to be provided:
resourceUri
- The uri of the Azure resource to scrape.filter
- The filter to use to have fine-grained metrics. Example:EntityName eq 'orders'
Promitor simplifies defining resource uris by using the subscription & resource
group defined in azureMetadata
so that your configuration is small & readable.
Example:
name: azure_service_bus_active_messages
description: "Amount of active messages of the 'myqueue' queue (determined with Generic provider)"
resourceType: Generic
azureMetricConfiguration:
metricName: ActiveMessages
aggregation:
type: Total
resources:
# Will scrape subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.ServiceBus/namespaces/promitor-messaging
# Where 'sub' & 'rg' are coming from azureMetadata
- resourceUri: Microsoft.ServiceBus/namespaces/promitor-messaging
filter: EntityName eq 'orders'
- resourceUri: Microsoft.ServiceBus/namespaces/promitor-messaging
filter: EntityName eq 'items'