AWS SQS exporter for prometheus
exported metrics:
sqs_message_count - gauge
sqs_message_age - gauge
edit config.yaml
docker compose up
# example build for apple macOS & Apple Silicon Chip
./build.sh darwin arm64
# example build for apple macOS & Intel Chip
./build.sh darwin amd64
# build with no args for help
./build.sh
# build with Makefile in docker for apple macOS & Apple Silicon Chip
make docker-build OS=darwin ARCH=arm64
[Unit]
Description=SQS exporter
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/usr/local/bin/sqs-exporter --config /etc/sqs-exporter/config.yml
SyslogIdentifier=sqs-exporter
Restart=always
[Install]
WantedBy=multi-user.target
aws_region: us-east-1 # Default SQS region
listen_ip: 0.0.0.0 # Listening IP address, default 0.0.0.0
port: 9090 # Listening port, default 9090
queues:
- url: "https://sqs.us-east-1.amazonaws.com/0123456789012/MyQueue"
- url: "https://sqs.us-west-2.amazonaws.com/123456789012/MyQueueInUsWest2"
region: "us-west-2"