Skip to content
fluentd out plugin to zabbix
Ruby Go
Latest commit 49e855a Dec 17, 2015 @fujiwara v0.2.0
Failed to load latest commit information.
lib/fluent/plugin add feature prefix_key Dec 17, 2015
test
.gitignore more Live testing. Dec 16, 2014
.travis.yml update bundler on before_install Dec 17, 2015
Gemfile initial setup Apr 14, 2012
Gemfile.fluentd.lt.0.10.43 add .travis.yml Sep 13, 2014
LICENSE initial setup Apr 14, 2012
README.md update readme Dec 17, 2015
Rakefile working now Apr 14, 2012
fluent-plugin-zabbix.gemspec v0.2.0 Dec 17, 2015

README.md

fluent-plugin-zabbix

Component

ZabbixOutput

Plugin to output values to Zabbix server.

Configuration

ZabbixOutput

Zabbix configuration of Item:

Key: metrics.field1
Type: Zabbix trapper

Key: metrics.field2
Type: Zabbix trapper

For messages such as: tag:metrics {"metrics.field1":300, "metrics.field2":20}

<match metrics>
  type zabbix
  zabbix_server 192.168.0.1
  port          10051
  host          client-hostname
  name_keys     metrics.field1,metrics.field2
</match>

or, use add_key_prefix tag:metrics {"field1":300, "field2":20}

<match metrics>
  type zabbix
  zabbix_server     192.168.0.1
  port              10051
  host              client-hostname
  add_key_prefix    metrics
  name_key_pattern  ^field
</match>

If prefix_key is specified, a value of record[prefix_key] will be used as key prefix.

If you want to specify the host(on zabbix) from record's value, use "host_key" directive.

tag:metrics {"zabbix_host":"myhostname", "metrics.field1":300, "metrics.field2":20}

<match metrics>
  type zabbix
  zabbix_server 192.168.0.1
  host_key      zabbix_host
  name_keys     metrics.field1,metrics.field2
</match>

v0.0.7~ includes Fluent::Mixin::ConfigPlaceholders. Placeholders will be expanded in a configuration.

<match matrics.**>
  type             zabbix
  zabbix_server    192.168.0.1
  host             ${hostname}
  add_key_prefix   ${tag}
  name_key_pattern .
</match>

TODO

  • patches welcome!

Copyright

  • Copyright: Copyright (c) 2012- FUJIWARA Shunichiro
  • License: Apache License, Version 2.0
Something went wrong with that request. Please try again.