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.0 (first working release)
- added a callable for discarded metrics
- dimensions will be checked for before the dict-convert
v1.5 (to be released)
- added Travis and CodeClimate
v1.4
- added handler for metric fail uploads
- removed the boto_client parameter
- added InitializationError
- fixed a critical bug
v1.3
- fixed exception handling
v1.2
- critical bugfix
v1.1
- fixed maximum number of metrics uploaded
- metrics with dimension count above 10 will be discarded with a warning
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-1.7.tar.gz
(4.9 kB
view hashes)
Built Distributions
aws_satella-1.7-py3.8.egg
(4.2 kB
view hashes)
Close
Hashes for aws_satella-1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54af595b44a91ef0e4604c0f0ebfeda3642a4a79be3538dae2461d35951b4729 |
|
MD5 | 73c9fb30e46d24648ed06a09bd1a4642 |
|
BLAKE2b-256 | e1635d03f3b87478b97244a6fe9ddf0ba8dd6988481ce0e4db6064ee16bf0e73 |