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
v1.4 (to be released)
- 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.4.tar.gz
(4.6 kB
view hashes)
Built Distributions
aws_satella-1.4-py3.8.egg
(3.9 kB
view hashes)
Close
Hashes for aws_satella-1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2ed76c9119dd3410898ae2ffef8c2abe4741ca1f5319857ef25dc88e2981aff |
|
MD5 | 9d1e697b6c81a603d81a94a64eb68082 |
|
BLAKE2b-256 | 0e414fb03d44f87f0cdf878aac109c27c6e0967481e03de72005a59467cac749 |