Azure Storage Queue¶
You can declare to scrape an Azure Queue via the StorageQueue
resource type.
When using declared resources, the following fields need to be provided:
accountName
- The name of the storage accountqueueName
- The name of the queuesasToken
- The SAS token used to access the queue/accountsasToken.environmentVariable
- Defines the environment variable which contains the SAS token to authenticate withsasToken.rawValue
- Contains the raw hardcoded SAS token (less secure)
Supported metrics:
TimeSpentInQueue
- Time in seconds that the oldest message has been waiting in the queue to be processed.MessageCount
The following scraper-specific metric label will be added:
queue_name
- Name of the queue
Example¶
Here is an example configuration:
name: azure_storage_queue_message_count
description: "The number of messages on an Azure storage queue"
resourceType: StorageQueue
azureMetricConfiguration:
metricName: MessageCount
aggregation:
type: Total
resources:
- accountName: promitor
queueName: orders
sasToken:
environmentVariable: "SECRETS_STORAGEQUEUE_PROMITOR_SASTOKEN"
- accountName: promitor
queueName: items
sasToken:
environmentVariable: "SECRETS_STORAGEQUEUE_PROMITOR_SASTOKEN"