Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fujiwara/fluent-plugin-zabbix
fluentd out plugin to zabbix
https://github.com/fujiwara/fluent-plugin-zabbix
fluent-plugin fluent-plugin-zabbix fluentd ruby zabbix
Last synced: 3 days ago
JSON representation
fluentd out plugin to zabbix
- Host: GitHub
- URL: https://github.com/fujiwara/fluent-plugin-zabbix
- Owner: fujiwara
- License: other
- Created: 2012-04-14T08:00:05.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-12-21T01:11:22.000Z (about 1 year ago)
- Last Synced: 2024-05-01T23:57:18.204Z (9 months ago)
- Topics: fluent-plugin, fluent-plugin-zabbix, fluentd, ruby, zabbix
- Language: Ruby
- Homepage:
- Size: 60.5 KB
- Stars: 50
- Watchers: 6
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fluent-plugin-zabbix
## Component
### ZabbixOutput
Plugin to output values to Zabbix server.
## Configuration
### ZabbixOutput
Zabbix configuration of Item:
Key: metrics.field1
Type: Zabbix trapperKey: metrics.field2
Type: Zabbix trapperFor messages such as:
tag:metrics {"metrics.field1":300, "metrics.field2":20}
@type zabbix
zabbix_server 192.168.0.1
port 10051
host client-hostname
name_keys metrics.field1,metrics.field2
or, use `add_key_prefix`
tag:metrics {"field1":300, "field2":20}
@type zabbix
zabbix_server 192.168.0.1
port 10051
host client-hostname
add_key_prefix metrics
name_key_pattern ^field
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}
@type zabbix
zabbix_server 192.168.0.1
host_key zabbix_host
name_keys metrics.field1,metrics.field2
v0.0.7~ includes [Fluent::Mixin::ConfigPlaceholders](https://github.com/tagomoris/fluent-mixin-config-placeholders). Placeholders will be expanded in a configuration.
```
@type zabbix
zabbix_server 192.168.0.1
host ${hostname}
add_key_prefix ${tag}
name_key_pattern .```
`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