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.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.5.tar.gz
(4.8 kB
view hashes)
Built Distributions
aws_satella-1.5-py3.8.egg
(4.0 kB
view hashes)
Close
Hashes for aws_satella-1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fea0cadcc06d18043464e57ab0f2e6b3cbee446e4b191c1c1e5da98ecaef943 |
|
MD5 | 14e5f8c0193ca194281a9bc7248e2fb4 |
|
BLAKE2b-256 | cb21df29b3cbc45f4d9032d506f9a339c8eacdf8225c645991a8c2aaf118ccaa |