普罗米修斯金字塔集成
pyramid-prometheus的Python项目详细描述
向普罗米修斯展示金字塔基本统计数据的一种花呢。
设置
您可以将导出程序包含在项目的__init__.py:
config = Configurator(.....) config.include('pyramid_prometheus')
或者可以使用棱锥体。在^{tt2}中包含配置值$ 文件:
[app:myapp] pyramid.includes = pyramid_exclog
设置
^{tt3}$: | |
---|---|
port number to expose metrics on. If not set, metrics are not exposed | |
^{tt4}$: | |
Number of seconds as a float. If a request takes longer than this, it is logged in the metric ^{tt5}$ |