Norikra::Listener::Zabbix
Description
Norikra listener plugin to send performance data for Zabbix.
Installation
gem install norikra-listener-zabbixUsage
Add your query with group ZABBIX(zabbix_server[:port=10051],zabbix_host[,preifx_item_key]).
Examples
SELECT sum(foo) AS sum, avg(foo) AS avg FROM test_table.win:time_batch(1 min)
-- group ZABBIX(localhost, zabbix host, foo.bar)Send data sum and avg to item key foo.bar.sum, foo.bar.avg.
SELECT sum(foo) AS `bar$foo$sum`, avg(foo) AS `bar$foo$avg` FROM test_table.win:time_batch(1 min)
-- group ZABBIX(localhost, zabbix host)Send data sum and avg to item key bar.foo.sum, bar.foo.avg.
Replace $ with ..
Identifiers cannot contain the "." (dot) character, i.e. "vol.price" is not a valid identifier for the rename syntax.
See: 5.3.4. Renaming event properties
SELECT sum(foo) AS sum, avg(foo) AS avg FROM test_table.win:time_batch(1 min)
-- group ZABBIX([::1], zabbix host)IPv6 syntax [IPADDR]:PORT.
Zabbix Items
- Key:
foo.bar.avg - Type:
Zabbix trapper - Type of information:
Numeric (float)
Test
rake [LOGLEVEL=ERROR]rake LOGLEVEL=DEBUGSet loglevel as DEBUG.
Misc
Many codes was copied from fujiwara/fluent-plugin-zabbix.
License
GPLv2