= fluent-plugin-flowcounter
== Component
=== FlowCounterOutput
Count metricses below about matches.
- Messages per min/hour/day
- Bytes per min/hour/day
- Messages per second (average every min/hour/day)
- Bytes per second (average every min/hour/day)
FlowCounterOutput emits messages contains results data, so you can output these message (with 'flowcount' tag by default) to any outputs you want.
output ex1 (aggragates all inputs): {"count":300, "bytes":3660, "count_rate":5, "bytes_rate":61}
output ex2 (aggragates per tag): {"test_count":300, "test_bytes":3660, "test_count_rate":5, "test_bytes_rate":61, "service1_count":180, "service1_bytes":7260, "service1_count_rate":3, "service1_bytes_rate":121}
'input_tag_remove_prefix' option available if you want to remove tag prefix from output field names.
== Configuration
=== FlowCounterOutput
Counts from fields 'field1' and 'field2', per minute(default), aggregates per tags(default), output with tag 'flowcount'(default).
type copy
# original output configurations...
type flowcounter
count_keys field1,field2
# output configurations where to send count results
Counts from field 'message', per hour, aggregates all tags, output with tag 'fluentd.traffic'.
type copy
# original output configurations...
type flowcounter
count_keys message
unit hour
aggregate all
tag fluentd.traffic
# output configurations where to send count results
To count with all fields in messages, specify 'count_keys *'.
type flowcounter
count_keys *
unit hour
aggregate all
tag fluentd.traffic
== TODO
- consider what to do next
- patches welcome!
== Copyright
Copyright:: Copyright (c) 2012- TAGOMORI Satoshi (tagomoris)
License:: Apache License, Version 2.0