Skip to main content

Intercepts json formatted metrics from process stdin and sends to AWS Cloudwatch

Project description



This tool is intended to process input fromstdin and publish some metrics encoded in the log stream. It looks for log lines that match a certain format and publishes to Cloudwatch metrics. The lines that not match are neither filtered nor altered and are written to stdout. The format for the metrics follows:

        "AMetricName": 2558219, 
        "Units": "Milliseconds",

Possible values for Units are:


(Same as put-metric-data units)


your_script | stdin_to_cloudwatch -i <django|none> -r <region> [-d <DimensionName=DimensionValue>]

Use stdin_to_cloudwatch -h for help.

AWS credentials are managed by boto3, so refer to boto documentation for further information.


Intention behind this tool is to decouple metrics publishing from the main app. With this tool publishing is a responsibility of infrastructure.

Project details

Download files

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

Files for stdin-to-cloudwatch, version 0.0.16
Filename, size File type Python version Upload date Hashes
Filename, size stdin_to_cloudwatch-0.0.16-py3-none-any.whl (6.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size stdin_to_cloudwatch-0.0.16.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page