Library to collect runtime metrics for Python applications using spectator-py.
Project description
spectator-py-runtime-metrics
Library to collect runtime metrics for Python applications using spectator-py.
See the Atlas Documentation site for more details on spectator-py
.
Instrumenting Code
from spectator.registry import Registry
from runmetrics.stats_collector import StatsCollector
if __name__ == "__main__":
registry = Registry()
# enable the `pid` tag on all metrics, if you are forking processes - default is False
StatsCollector(registry, enable_pid_tag=False).start()
References
- Python
- Linux
Local Development
Install pyenv, possibly with Homebrew, and install a recent Python version.
make setup-venv
make test
make coverage
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
Built Distribution
Close
Hashes for netflix_spectator_py_runtime_metrics-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17387e8378113819ae59ea574f6a8501b393c2fb55b8391b6bce5123dfb5f67e |
|
MD5 | 64497537a09a9f593f387f6f5f32c2df |
|
BLAKE2b-256 | e561c373c8eba3c2afa8f8337c0a65631deb18e68da96e4c231eb7e6be70163a |
Close
Hashes for netflix_spectator_py_runtime_metrics-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f48edd07c5ecbb6ab10e84d5e171e73ce4212675aae756c502dcbd758206f8b1 |
|
MD5 | b09ac15807de81ed017bb3ac6cf305e7 |
|
BLAKE2b-256 | bb9909ea5d1e72be95e3f2de2276c6f85de0a4668e08704fd9fee3515438874b |