Skip to content

Commit

Permalink
Update README and gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
repeatedly committed Jun 30, 2020
1 parent 2073ac9 commit e4d1b64
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
27 changes: 16 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,15 @@

Simple Fluentd Plugin to count number of messages and outputs to log

## Output Plugin Configuration
## Requirements

<match foo.bar.**>
type flowcounter_simple
unit second
</match>

This plugin does not emit, just writes counts into the log file as

plugin:out_flowcounter_simple count:30 indicator:num unit:second
| fluent-plugin-flowcounter-simple | fluentd | ruby |
|-------------------|---------|------|
| >= 0.1.0 | >= v1.0 | >= 2.4 |
| < 0.0.4 | >= v0.12.0 | >= 2.1 |

## Filter Plugin Configuration

Fluentd >= v0.12

```apache
<filter foo.bar.**>
type flowcounter_simple
Expand All @@ -28,6 +22,17 @@ This filter plugin pass through records, and writes counts into the log file as

plugin:out_flowcounter_simple count:30 indicator:num unit:second

## Output Plugin Configuration

<match foo.bar.**>
type flowcounter_simple
unit second
</match>

This plugin does not emit, just writes counts into the log file as

plugin:out_flowcounter_simple count:30 indicator:num unit:second

## Parameters

- unit
Expand Down
2 changes: 1 addition & 1 deletion fluent-plugin-flowcounter-simple.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]

gem.add_runtime_dependency "fluentd"
gem.add_runtime_dependency "fluentd", [">= 1.0"]
gem.add_development_dependency "rake"
gem.add_development_dependency "pry"
gem.add_development_dependency "pry-nav"
Expand Down

0 comments on commit e4d1b64

Please sign in to comment.