django-prometheus-Export Django 针对 Prometheus.io 的监测指标-python

时间:2021-06-18 19:23:47
【文件属性】:
文件名称:django-prometheus-Export Django 针对 Prometheus.io 的监测指标-python
文件大小:202KB
文件格式:ZIP
更新时间:2021-06-18 19:23:47
第三方 API的库 django-prometheus-Export Django 针对 Prometheus.io 的监测指标 django-prometheus 导出 Prometheus.io 的 Django 监控指标使用要求 Django >= 2.2 安装 安装方式:pip install django-prometheus 或者,如果您使用的是从该存储库克隆的开发版本:python path-to-where-you- cloned-django-prometheus/setup.py install 这将安装 prometheus_client 作为依赖项。 快速入门 在您的 settings.py 中: INSTALLED_APPS = [ ... 'django_prometheus', ... ] MIDDLEWARE = [ 'django_prometheus.middleware.PrometheusBeforeMiddleware', # 所有其他中间件都放在这里,包括默认 # 中间件,如 SessionMiddleware、CommonMiddleware、 # C
【文件预览】:
django-prometheus-master
----setup.py(2KB)
----.gitignore(1KB)
----documentation()
--------exports.md(5KB)
----requirements.txt(188B)
----.travis.yml(938B)
----MANIFEST.in(34B)
----update_version_from_git.py(4KB)
----CONTRIBUTING.md(2KB)
----LICENSE(11KB)
----CHANGELOG.md(847B)
----django_prometheus()
--------urls.py(168B)
--------__init__.py(650B)
--------middleware.py(12KB)
--------db()
--------models.py(1KB)
--------utils.py(852B)
--------cache()
--------migrations.py(2KB)
--------tests()
--------apps.py(937B)
--------testutils.py(6KB)
--------exports.py(5KB)
--------conf()
----setup.cfg(125B)
----examples()
--------prometheus()
--------django-promdash.png(151KB)
----README.md(8KB)
----tox.ini(1023B)

网友评论