-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in_statsd: implement the support for "statsd" protocol #1756
Conversation
For reference, the original issue is #1546. |
thanks @fujimotos ! . The overall plugin looks good, I've just asked for minor adjustments. |
4a34acd
to
e13df89
Compare
@edsiper Thank you! I posted a updated version of this patch at I also posted the doc for the new plugin at fluent/fluent-bit-docs/pull/239. |
This is the first cut at adding statsd support to Fluent Bit. You can use the "in_statsd" plugins as follows: $ fluent-bit -i statsd -o stdout ... now you can input metrics like: $ echo "click:10|c|@0.1" > /dev/udp/127.0.0.1/8125 $ echo "active:+10|g" > /dev/udp/127.0.0.1/8125 This plugin will parse the incoming messages and produce well- formatted records like below: {"type"=>"counter", "bucket"=>"click", "value"=>10.000000, "sample_rate"=>0.100000} {"type"=>"gauge", "bucket"=>"active", "value"=>10.000000, "incremental"=>1} With this, we can easily collect performance logs from services with statsd ouput support (like cadvisor). Signed-off-by: Fujimoto Seiji <[email protected]>
e13df89
to
77cfad0
Compare
Rebased to |
@fujimotos @edsiper I'm curious is in_statsd is planned for v1.4 or not? AWS is very interested in this feature. |
@eduardo @PettitWesley I took some time this morning to test this patch So I believe this is safely mergeable into master. Bash
Fluent Bit (master HEAD + 1756) $ fluent-bit -i statsd -o stdout
...
[0] statsd.0: [1579139088.542499259, {"type"=>"counter", "bucket"=>"foo", "value"=>10.000000, "sample_rate"=>1.000000}]
[0] statsd.0: [1579139092.781984318, {"type"=>"gauge", "bucket"=>"foo", "value"=>100.000000, "incremental"=>0}]
[0] statsd.0: [1579139111.553117959, {"type"=>"timer", "bucket"=>"foo", "value"=>10.000000, "sample_rate"=>0.100000}]
[0] statsd.0: [1579139129.373909083, {"type"=>"set", "bucket"=>"foo", "value"=>"baa"}] |
thanks! |
This is the first cut at adding statsd support to Fluent Bit.
You can use the
in_statsd
plugins as follows:... now you can input metrics like:
This plugin will parse the incoming messages and produce well-
formatted records like below:
With this, we can easily collect performance logs from services
with statsd ouput support (like cadvisor).
Signed-off-by: Fujimoto Seiji [email protected]