一个常见的wsgi堆栈
talisker的Python项目详细描述
talisker是wsgi应用程序的增强运行时,旨在提供 python微服务的通用操作平台。
它与许多标准python库集成,为您提供开箱即用的功能 日志记录、度量、错误报告、状态URL等。
快速启动
只需通过pip:
pip install talisker[gunicorn]
然后用talisker运行您的wsgi应用程序(就像它是普通的gunicorn一样)。:
talisker.gunicorn app:wsgi -c config.py ...
这为您提供了Talisker 80%的好处:结构化日志、度量, 岗哨错误处理、标准化状态端点等。
注意:现在,塔利斯克尔有广泛的支持与冈尼科恩运行,与 计划提供更多的WSGI服务器支持
升降舵俯仰
talisker将标准python库集成到一个 工具,在开发和生产中都有用它提供:
- structured logging for stdlib logging module (with grok filter)
- gunicorn as a wsgi runner
- request id tracing
- standard status endpoints
- statsd/prometheus metrics for incoming/outgoing http requests and more.
- deep sentry integration
它还可以选择支持相同级别的日志/度量/哨兵 集成:
- celery workers
- general python scripts, like cron jobs or management tasks.
塔利斯克尔固执己见,设计简单易用。因此,它不是 目前非常可配置。不过,公关是非常受欢迎的!
有关详细信息,请参阅文档,该文档应位于: