Skip to main content

sd-ironmq

A plugin for the Server Density agent that monitors IronMQ queues using API version 3.

PyPI page | GitHub project

For details how to write one, read the official docs on plugins. Or find more official plugins.

Features

  • Monitors all queues of the given projects.

  • Recorded metrics:
    • size (key: <projectid/-name>:<queuename>:size)

    • total_messages (key: <projectid/-name>:<queuename>:size)

Example for metric keys:

billingproject:invoicequeue:size
billingproject:invoicequeue:total_messages

How to use

Install via PyPI or …

Get it from pypi, installing it somewhere:

pip install sd-ironmq

Symlink it to your plugin directory, on Debian/Ubuntu by default: /usr/bin/sd-agent/plugins

Install via curl

curl the latest version from GitHub directly into your Plugin directory:

curl https://raw.githubusercontent.com/engagespark/sd-ironmq/master/IronMQ.py > /usr/bin/sd-agent/plugins/IronMQ.py

Configure

Add this section to your /etc/sd-agent/config.cfg:

[IronMQ]
host=mq-aws-eu-west-1-1.iron.io
# comma separated list of project IDs
project_ids=<your-project-ids>
token=<your-token>

Restart the agent

On Debian/Ubuntu:

service sd-agent restart

Other configuration options

Metric Keys: Use Project Names instead of IDs

Let’s say you configured the queues of your billing project to be monitored:

project_ids=2342934839ai239ai89i

For a queue invoices, the metric keys would look like so:

2342934839ai239ai89i:invoices:size
2342934839ai239ai89i:invoices:total_messages

That’s not beautiful, nor understandable. Also it exposes IronMQ internals unnecessarily. Configure a name for the project ID like so:

2342934839ai239ai89i.name=billing

The name is then used in the keys:

billing:invoices:size
billing:invoices:total_messages

Test locally

Create an example.cfg in the working directory:

[IronMQ]
host=mq-aws-eu-west-1-1.iron.io
project_ids=<your-project-ids>
token=<your-token>

Run the plugin:

python IronMQ.py

Releasing

Prepare

  1. Install twine and wheel:

    $ pip install -r requirements_dev.txt
  2. Setup your .pypirc.

Release a new version

  1. Update CHANGELOG.

  2. Update version in setup.py, commit, push.

  3. Tag as that version, see git tag, push –tags

  4. Build distributables:

    $ python setup.py sdist bdist_wheel
  5. Upload distributable to PyPI:

    $ twine upload --sign dist/*

License

MIT, see LICENSE file, Copyright engageSPARK

Metadata

Release files for sd-ironmq 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sd-ironmq 0.1.2
File Size Uploaded Provenance Actions
sd-ironmq-0.1.2.tar.gz 4.1 kB Without provenance Details for sd-ironmq-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sd-ironmq 0.1.2
File Interpreter ABI Platform Actions
sd_ironmq-0.1.2-py2-none-any.whl Python 2 none any Details for sd_ironmq-0.1.2-py2-none-any.whl

Total release size: 10.2 kB

Release files / sd-ironmq-0.1.2.tar.gz

Download URL sd-ironmq-0.1.2.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2387a4b619b7c8d491606392c1dafaa4d0cdb4801765694977d6a97b61f14251
BLAKE2b-256 checksum
How to use checksums
c64c95b1b2f7ad35a2bb85e15465e168c28854604d55a0a27c49b28bac5c3e85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / sd_ironmq-0.1.2-py2-none-any.whl

Download URL sd_ironmq-0.1.2-py2-none-any.whl
Size 6.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
775abdc99562cfa160168164a6d35648257c00bb42d3dfaef78ca05ef5f73ca8
BLAKE2b-256 checksum
How to use checksums
a8841f7ae413025d77ec1c41002f20692fb4ee35f574eb2c07f24efced9f0d75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sd-ironmq 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page