Skip to content

Azure Storage Queue

Availability BadgeResource Discovery Support Badge

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 account
  • queueName - The name of the queue
  • sasToken - The SAS token used to access the queue/account
  • sasToken.environmentVariable - Defines the environment variable which contains the SAS token to authenticate with
  • sasToken.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"
Back to top