【文件属性】:
文件名称:django-prometheus:导出Prometheus.io的Django监控指标
文件大小:202KB
文件格式:ZIP
更新时间:2021-02-04 08:22:26
python django monitoring metrics prometheus
django-prometheus
为Prometheus.io导出Django监控指标
产品特点
该库为Django相关操作提供了Prometheus指标:
要求与回应
通过完成数据库访问
通过完成的缓存访问
用法
要求
的Django> = 2.2
安装
安装方式:
pip install django-prometheus
或者,如果您正在使用从此存储库克隆的开发版本:
python path-to-where-you-cloned-django-prometheus/setup.py install
这将安装作为依赖项。
快速开始
在您的settings.py中:
INS
【文件预览】:
django-prometheus-master
----MANIFEST.in(34B)
----.travis.yml(938B)
----django_prometheus()
--------migrations.py(2KB)
--------models.py(1KB)
--------conf()
--------cache()
--------apps.py(937B)
--------utils.py(852B)
--------db()
--------tests()
--------middleware.py(12KB)
--------exports.py(5KB)
--------__init__.py(604B)
--------testutils.py(6KB)
--------urls.py(168B)
----documentation()
--------exports.md(5KB)
----tox.ini(1019B)
----LICENSE(11KB)
----CONTRIBUTING.md(2KB)
----setup.cfg(125B)
----requirements.txt(189B)
----examples()
--------prometheus()
--------django-promdash.png(151KB)
----setup.py(2KB)
----.gitignore(1KB)
----CHANGELOG.md(847B)
----README.md(8KB)
----update_version_from_git.py(4KB)