Skip to main content

statsd-cloudwatch

This is a simple service that runs in the foreground and publishes metrics received via the statsd protocol on udp port 8125 to CloudWatch. It’s expecting to run on EC2 with an IAM Instance Profile defined.

Installation

You can install this with pip:

pip install statsd-cloudwatch

It will install a binary called statsd_cloudwatch. This will run in the foreground and listen on port 8125. To run it as a service you can use systemd or upstart.

The following snippets assuming you have created a user called statsd.

For upstart, add /etc/init/statsd.conf:

start on runlevel [2345]
stop on runlevel [!2345]
setuid statsd
setgid statsd
kill timeout 900
respawn
exec /app/bin/statsd_cloudwatch

Credentials

It is assumed that you will run this service on EC2 instances and that they will receive their credentials via the Amazon metadata service. You will need the following IAM policy:

{
    "Statement": [{
        "Action": ["cloudwatch:PutMetricData"],
        "Effect": "Allow",
        "Resource": "*"
    }]
}

Metadata

Release files for statsd-cloudwatch 0.0.3

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

Source distribution (sdist)

Source distribution for statsd-cloudwatch 0.0.3
File Size Uploaded Provenance Actions
statsd-cloudwatch-0.0.3.zip 8.3 kB Without provenance Details for statsd-cloudwatch-0.0.3.zip

Release files / statsd-cloudwatch-0.0.3.zip

Download URL statsd-cloudwatch-0.0.3.zip
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
78603fef2ecdb448d3e64444e21e46a64ab82b6d9251709a4c5bf90938e47132
BLAKE2b-256 checksum
How to use checksums
1479f1ecea4badbd374b2333410c548eb5d98bdaa6f22dfec427d817c8421291
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for statsd-cloudwatch 0.0.3

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.0.3 This release

1 release file 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