35 lines
975 B
Markdown
35 lines
975 B
Markdown
# Telegraf Input Plugin: Azure Storage Queue
|
|
|
|
This plugin gathers sizes of Azure Storage Queues.
|
|
|
|
### Configuration:
|
|
|
|
```toml
|
|
# Description
|
|
[[inputs.azure_storage_queue]]
|
|
## Required Azure Storage Account name
|
|
account_name = "mystorageaccount"
|
|
|
|
## Required Azure Storage Account access key
|
|
account_key = "storageaccountaccesskey"
|
|
|
|
## Set to false to disable peeking age of oldest message (executes faster)
|
|
# peek_oldest_message_age = true
|
|
```
|
|
|
|
### Metrics
|
|
- azure_storage_queues
|
|
- tags:
|
|
- queue
|
|
- account
|
|
- fields:
|
|
- size (integer, count)
|
|
- oldest_message_age_ns (integer, nanoseconds) Age of message at the head of the queue.
|
|
Requires `peek_oldest_message_age` to be configured to `true`.
|
|
|
|
### Example Output
|
|
|
|
```
|
|
azure_storage_queues,queue=myqueue,account=mystorageaccount oldest_message_age=799714900i,size=7i 1565970503000000000
|
|
azure_storage_queues,queue=myemptyqueue,account=mystorageaccount size=0i 1565970502000000000
|
|
``` |