Skip to main content

A Python script to monitor and list Amazon SQS queues with messages, featuring real-time updates and AWS console links.

Project description

SQS List Filled Queues

A Python script that lists Amazon SQS queues containing messages and updates the display periodically. This tool leverages the boto3 library to interact with AWS SQS, making it easy to monitor your message queues.

Features

  • Lists all SQS queues with at least one message.
  • Displays the number of messages in each queue.
  • Provides direct links to the AWS SQS console for each queue.
  • Supports periodic updates to refresh the displayed information.
  • Configurable number of worker threads for fetching queue information.

Prerequisites

  • Python 3.x
  • AWS credentials configured (via environment variables, AWS config file, or IAM roles).

Usage

You can run the script directly from the command line. Here are some usage examples:

  • To list queues and display results once:

    sqs-list-filled-queues

  • To watch the queues and refresh every 60 seconds:

    sqs-list-filled-queues --watch

  • To specify a custom refresh interval (e.g., 30 seconds):

    sqs-list-filled-queues --watch 30

  • To adjust the number of worker threads (e.g., 8):

    sqs-list-filled-queues --workers 8

Controls During Watching

  • Press R to force a refresh.
  • Press Q to quit the program.

Example Output

Reading list of queues...Processed 5 out of 10 queues...
QueueName1: 12 msgs
    https://console.aws.amazon.com/sqs/v2/home?region=us-west-2#/queues/QueueName1
QueueName2: 5 msgs
    https://console.aws.amazon.com/sqs/v2/home?region=us-west-2#/queues/QueueName2
...

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqs_list_filled_queues-0.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqs_list_filled_queues-0.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file sqs_list_filled_queues-0.2.tar.gz.

File metadata

  • Download URL: sqs_list_filled_queues-0.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for sqs_list_filled_queues-0.2.tar.gz
Algorithm Hash digest
SHA256 084cac25dcdda6d6e341a413c5e28ecbbab450834009f47fee94f0efb5319adf
MD5 aadf3d290704b84d58e0d4bc09243413
BLAKE2b-256 23baa2c6801b8fae92d628071fbf7494d95a34168db07359416fd1ac2c722afb

See more details on using hashes here.

File details

Details for the file sqs_list_filled_queues-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sqs_list_filled_queues-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9815ce3ef19f1743cd019f7254c9900983dd003b5e11d37a739fd7aeeaae86a5
MD5 9c1a342437fb45ee8db35c4be172336b
BLAKE2b-256 4bd909e098df9f2e6227e2762f401837f59f476fd144db54c207b2b80e48f34c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page