A library to export Satella's metrics to AWS CloudWatch
pip install aws-satella
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.
This also supports easy Django configuration, for details go read the docs.
Change log was moved here.
My special thanks go out to the team at Mailerrize for their support.