github.com/mackerelio/mackerel-agent-plugins@v0.89.3/mackerel-plugin-fluentd/README.md (about) 1 mackerel-plugin-fluentd 2 ========================= 3 4 Fluentd (http://www.fluentd.org/) custom metrics plugin for mackerel.io agent. 5 6 ## Synopsis 7 8 ```shell 9 mackerel-plugin-fluentd [-host=<host>] [-port=<port>] [-tempfile=<tempfile>] [-plugin-type=<plugin-type>] [-plugin-id-pattern=<plugin-id-pattern>] [-workers=<workers>] [-extended_metrics=<metric-names>] 10 ``` 11 12 ## Example of mackerel-agent.conf 13 14 ``` 15 [plugin.metrics.fluentd] 16 command = "/path/to/mackerel-plugin-fluentd" 17 ``` 18 19 ## Enable monitor_agent for fluentd 20 21 This plugin needs to enable monitor_agent at the target fluentd process. 22 Add following configuraion to your fluentd.conf. 23 24 ``` 25 <source> 26 type monitor_agent 27 bind 0.0.0.0 28 port 24220 29 </source> 30 ``` 31 32 See https://docs.fluentd.org/input/monitor_agent in details. 33 34 If you have specified the `workers` parameter in fluentd's `<system>` directive, you can use the `-workers` option. 35 36 ``` 37 <system> 38 workers 3 39 </system> 40 41 <source> 42 @type monitor_agent 43 port 24230 # worker0: 24230, worker1: 24231, worker2: 24232 44 </source> 45 ``` 46 47 See https://docs.fluentd.org/input/monitor_agent#multi-process-environment in details. 48 49 ## License 50 51 Released under the MIT license 52 http://opensource.org/licenses/mit-license.php 53 54 Original version of the plugin https://github.com/y-matsuwitter/mackerel-fluentd 55 Copyright (c) 2015 Yuki Matsumoto 56 57 Current version is forked from the original version under the MIT license. 58 Copyright (c) 2015 Shinji Tanaka 59