在瓶子服务器上实现弹性apm检测的插件。
bottle-elastic-apm的Python项目详细描述
瓶式弹性APM
简单的插件使用ELK与APM服务器为您的瓶子应用程序
# Keep this firstimportelasticapmelasticapm.instrument()frombottleimportdefault_app,runfrombottle_elastic_apmimportELKApmPLuginELK_CONFIG={'SERVICE_NAME':'my-app',}app=default_app()app.install(ELKApmPLugin(ELK_CONFIG))@app.get('/')defindex():return'Hello world!'run(app)
- 项目
标签: