jmal98 / sqs-exporter

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

Does sqs-exporter support FIFO sqs queues? #10

Open tomfotherby opened 5 years ago

tomfotherby commented 5 years ago

Today we added our first FIFO sqs queue and we noticed our sqs-exporter stopped working. Apon checking the Prometheus targets (http://127.0.0.1:9090/targets) I could see the sqs-exporter servicemonitor was showing as down with the error message:

invalid metric type "fifo_sqs_approximatenumberofmessagesdelayed gauge"

As a workaround, we added the SQS_QUEUE_NAMES ENV var to our sqs-exporter deployment Manifest to whitelist the queues we want metrics for:

spec:
  containers:
  - name: sqs-exporter
  ...
  env:
  - name: SQS_QUEUE_NAMES
    value: "redacted_queue_name1,redacted_queue_name2,redacted_queue_name3"

This way, our new FIFO queue is ignored.


It is my understanding that FIFO queues seem to have to have a name the ends in .fifo (source). Maybe the . character in the queue name is causing a issue?


Please close this issue if I'm misunderstanding something - which is very possible.