Helper functions used to monitor Arkhn's stack.
Project description
Python package
You can install this package with pip install arkhn-monitoring
.
Metrics
from arkhn_monitoring import Counter, Timer
@Timer(<args and kwargs for prometheus client Histogram>)
def func_to_time():
...
@Counter(<args and kwargs for prometheus client Counter>)
def func_to_count():
...
Logging
from arkhn_monitoring import create_logger
logger = create_logger(
"service",
fluentd_host="fluentd",
fluentd_port=24224,
level="DEBUG",
extra_fields=["resource_ids"]
)
logger.debug("log")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arkhn-monitoring-0.0.3.tar.gz
(2.5 kB
view hashes)