jmal98 / sqs-exporter

A Prometheus Exporter for the Amazon Simple Queue Service (SQS)
Apache License 2.0
26 stars 28 forks source link

add SQS_QUEUE_NAMES option to watch specific queues #3

Closed danmaas closed 6 years ago

danmaas commented 6 years ago

Instead of checking all SQS queues visible to the AWS account, I prefer to give the exporter a list of specific queues to watch.

This patch adds an environment variable SQS_QUEUE_NAMES that allows you to specify a comma-delimited list of SQS queue names. If no value is set, it falls back to the current behavior of watching all queues.

jmal98 commented 6 years ago

Seems reasonable.

Thank you for your contribution.