jmal98 / sqs-exporter

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

Ability to specify queue URLs directly #9

Closed lrouquette closed 5 years ago

lrouquette commented 5 years ago

I needed this as my environment had some stringent restrictions on the IAM role that can access the queues: it only allows sqs:GetQueueAttributes on very specific queues (so no sqs:ListQueues nor sqs:GetQueueUrl).

Also has the added benefit of reducing the metric collection to a single call to SQS instead of 2 (because it doesn't have to retrieve the queues or look up their URLs).

Perhaps, this might be useful to others.

jmal98 commented 5 years ago

Thank you for your contribution.