Monitoring uwsgi with zabbix

妖精的绣舞 提交于 2019-12-12 03:24:39

问题


I would like to monitor uwsgi using zabbix. I found that there is some plugin for that:

uwsgi --stats-push zabbix:127.0.0.1:10051,myinstance ...

but I'm not sure how it is supposed to work. It seems that uwsgi pushes all the stats to the target zabbix but I can't find a description of this stats, hence I don't know how to set item(s) on zabbix.

For the moment I don't see anything coming to my zabbix instance.


回答1:


You need:

  1. run uwsgi with: --plugin zabbix --zabbix-template and get actual template for uwsgi configuration.
  2. import this template to zabbix and apply it to host with uWSGI server.
  3. run uwsgi with: --stats-push zabbix:zabbix.host.name[,prefix to keys]


来源:https://stackoverflow.com/questions/38452918/monitoring-uwsgi-with-zabbix

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!