问题
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:
- run uwsgi with: --plugin zabbix --zabbix-template and get actual template for uwsgi configuration.
- import this template to zabbix and apply it to host with uWSGI server.
- run uwsgi with: --stats-push zabbix:zabbix.host.name[,prefix to keys]
来源:https://stackoverflow.com/questions/38452918/monitoring-uwsgi-with-zabbix