Skip to main content

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.4.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page