python-gc-prometheus:将有关 Python 应用程序的 GC 统计数据的指标导出到 Prometheus.io

时间:2021-06-10 06:19:36
【文件属性】:
文件名称:python-gc-prometheus:将有关 Python 应用程序的 GC 统计数据的指标导出到 Prometheus.io
文件大小:11KB
文件格式:ZIP
更新时间:2021-06-10 06:19:36
python prometheus exported-metrics gc-stats Python python-gc-prometheus 导出有关 Prometheus.io 的 Python 垃圾收集器的指标。 安装 pip install gc_prometheus 用法 只需import gc_prometheus即可注册指标。 请参阅 prometheus_client以了解如何通过 HTTP 服务器导出指标。 如果您使用的是 Django,请查看 ,它可以将指标导出到 Django 视图,并导出与 Django 相关的指标。 要聚合导出的变量,请参阅。 高级用法 这个包包含两个系列的指标: gc stats,它只是导出由模块公开的计数器。 这主要是对象的计数器。 您可以通过导入gc_prometheus.stats单独导入这些指标。 gc profiling stats,它向 gc 模块注册回调并向垃圾收集过程添加一些可以忽略不计的开销。 这主要是在 GC 过程中
【文件预览】:
python-gc-prometheus-master
----setup.py(1KB)
----.gitignore(1KB)
----requirements.txt(37B)
----.travis.yml(161B)
----LICENSE(11KB)
----README.md(1KB)
----tests()
--------__init__.py(0B)
--------test_profile.py(598B)
--------test_import.py(416B)
--------test_gc_stats.py(2KB)
----gc_prometheus()
--------__init__.py(103B)
--------stats.py(2KB)
--------profile.py(926B)

网友评论