Sha256: 9c682cc229ef802f5057a0f75280ffef52729cb9d9ebc9427d9cb588580fa6f3

Contents?: true

Size: 1.9 KB

Versions: 3

Compression:

Stored size: 1.9 KB

Contents

= 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).

    <match **>
      type copy
      <store>
        # original output configurations...
      </store>
      <store>
        type flowcounter
        count_keys field1,field2
      </store>
    </match>
    
    <match flowcount>
      # output configurations where to send count results
    </match>

Counts from field 'message', per hour, aggregates all tags, output with tag 'fluentd.traffic'.

    <match **>
      type copy
      <store>
        # original output configurations...
      </store>
      <store>
        type flowcounter
        count_keys message
        unit       hour
        aggregate  all
        tag        fluentd.traffic
      </store>
    </match>
    
    <match flowcount>
      # output configurations where to send count results
    </match>

== TODO

- consider what to do next
- patches welcome!

== Copyright

Copyright:: Copyright (c) 2012- TAGOMORI Satoshi (tagomoris)
License::   Apache License, Version 2.0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fluent-plugin-flowcounter-0.1.3 README.rdoc
fluent-plugin-flowcounter-0.1.2 README.rdoc
fluent-plugin-flowcounter-0.1.1 README.rdoc