Monitoring uwsgi with zabbix

2019-09-10 04:07发布

问题:

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]


标签: uwsgi zabbix