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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b305566d59d8c7a0dfcfd452c322a5823bde274c8d5b9ca776f38c1bc8a0a6a8 |
|
MD5 | a3207c69e7641b0782bb4c93d5a4b9a5 |
|
BLAKE2b-256 | caa66211d1f956f23ef6962abd85c683944ffa3246664ec97fdb6c4f5b4ee6a2 |
Close
Hashes for netflix_spectator_py_runtime_metrics-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0475290d04e38d9a021a729398d8bcda1de6e97ddc777389ca4981e3a1af8f34 |
|
MD5 | b1fdfb8b17e0bcb1cad5a9c93a58dbca |
|
BLAKE2b-256 | 47cc997372e8631735c78f6b5b73c15df64cedfad26bc9cc2eaac75586902e8c |