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 details)

Uploaded Source

File details

Details for the file arkhn-monitoring-0.0.4.tar.gz.

File metadata

  • Download URL: arkhn-monitoring-0.0.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/42.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.9

File hashes

Hashes for arkhn-monitoring-0.0.4.tar.gz
Algorithm Hash digest
SHA256 77449e7b504dce4b6514372f12dfdb103a363259ed503ee2dd11c436c94b7a39
MD5 0db8e6854cf7c5ccf776a8a39419716b
BLAKE2b-256 476d96fff7a403bf3f069205bcaa85e4313de8bc56e8e6062dac95c742f77043

See more details on using hashes here.

Supported by

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