Giter VIP home page Giter VIP logo

fluent-plugin-zabbix's Introduction

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>

host parameter is set by default to Ruby's Socket.gethostname if not specified.

TODO

  • patches welcome!

Copyright

  • Copyright: Copyright (c) 2012- FUJIWARA Shunichiro
  • License: Apache License, Version 2.0

fluent-plugin-zabbix's People

Contributors

cosmo0920 avatar cubicdaiya avatar dependabot-preview[bot] avatar fujiwara avatar okkez avatar wktk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fluent-plugin-zabbix's Issues

can hostname be autopopulated?

Hello,
your docs dont quite make it clear: if you leave the hostname field blank in the configs, will it get autopopulated in the same way that setting

Hostname=

in zabbix_agent.conf autopopulates it with the OS hostname?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.