Integration of Satella's metrics with AWS CloudWatch
Project description
aws-satella
A library to export Satella's metrics to AWS CloudWatch
Installation
pip install aws-satella
Usage
import sys
from aws_satella import AWSSatellaExporterThread, InitializationError
try:
aws = AWSSatellaExporterThread('AppNamespace')
aws.start()
except InitializationError:
print('Could not initialize the boto3 client')
sys.exit(1)
This spawns a daemonic thread. For details, refer to the docs.
You can additionally use
from aws_satella import start_if_not_started
start_if_not_started(*args, **kwargs)
Both args
and kwargs
will be passed to constructor.
This will initialize such thread, if one does not exist already.
Change log
v2.1 (next release)
- added
add_pid
parameter
v2.0
- first real release
Special thanks
My special thanks go out to the team at Mailerrize for their support.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aws-satella-2.1.tar.gz
(5.0 kB
view hashes)
Built Distributions
aws_satella-2.1-py3.8.egg
(4.2 kB
view hashes)
Close
Hashes for aws_satella-2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be221bea514c2d62fa3cf2f8d7dbd11c262cf72bc9210a843723a8b716ac8934 |
|
MD5 | ef3c1d653af8c1e5b9fb7bae0baddbf0 |
|
BLAKE2b-256 | a5254212c32de5db399f05612599c0778997dee6a6d4988de613ef73a7214b68 |