Closed aensidhe closed 9 years ago
Hello.
I'm trying to send count of exceptions to zabbix. Config is below and it's not working, because metrics stores its output in subfields. I can workaround it, but I think it worth to implement.
metrics
input { stdin { codec => json } } filter { if [Exception] { metrics { meter => [ "[@metadata][exception]" ] add_tag => [ "metric" ] clear_interval => 5 flush_interval => 5 periodic_flush => true rates => [] add_field => { "[@metadata][zabbix_key]" => "ExceptionsCount" } } } } output { stdout { codec => rubydebug { metadata => true } } if "metric" in [tags] { zabbix { zabbix_host => "SomeHost" zabbix_server_host => "SomeZabbixServer" zabbix_value => "[@metadata][exception][.count]" zabbix_key => "[@metadata][zabbix_key]" } } }
This (using subfields) is the canonical way to do it.
When you ask for "full property support," what exactly would you like to see?
Hm. It seems I misread docs and all working well. I'm very sorry.
Hello.
I'm trying to send count of exceptions to zabbix. Config is below and it's not working, because
metrics
stores its output in subfields. I can workaround it, but I think it worth to implement.