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")
Release files for arkhn-monitoring 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| arkhn-monitoring-0.0.4.tar.gz | 2.6 kB | Details |
Release files / arkhn-monitoring-0.0.4.tar.gz
| Download URL | arkhn-monitoring-0.0.4.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77449e7b504dce4b6514372f12dfdb103a363259ed503ee2dd11c436c94b7a39
|
|
BLAKE2b-256 checksum How to use checksums |
476d96fff7a403bf3f069205bcaa85e4313de8bc56e8e6062dac95c742f77043
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|