Prometheus SQS Exporter
Prometheus exporter for AWS Simple Queue Service (SQS)
Metrics
Metric | Description |
---|---|
ApproximateNumberOfMessages | Returns the approximate number of messages available for retrieval from the queue |
ApproximateNumberOfMessagesDelayed | Returns the approximate number of messages in the queue that are delayed and not available for reading immediately. This can happen when the queue is configured as a delay queue or when a message has been sent with a delay parameter |
ApproximateNumberOfMessagesNotVisible | Returns the approximate number of messages that are in flight. Messages are considered to be in flight if they have been sent to a client but have not yet been deleted or have not yet reached the end of their visibility window. |
Installation
pip install prometheus-sqs-exporter
python setup.py install
Configuration
You must have access to read SQS on Amazon
Configure AWS credentials
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html
Usage
prometheus-sqs-exporter --interval 30 --port 8420
Open your browser
http://localhost:8420/metrics
Grafana dashboard
Import grafana dashboard from: https://github.com/0xdutra/prometheus-sqs-exporter/blob/main/grafana/dashboard.json