Skip to content

Instantly share code, notes, and snippets.

@yosisa
Created April 19, 2014 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yosisa/11084259 to your computer and use it in GitHub Desktop.
Save yosisa/11084259 to your computer and use it in GitHub Desktop.
fluent-plugin-inline-classifier で reqtime を分類する ref: http://qiita.com/yosisa/items/01be2d2e74858aae440e
$ gem install fluent-plugin-inline-classifier
<match raw.access.**>
type inline_classifier
add_prefix classified
remove_prefix raw
<rule>
key reqtime
type range
store speed
class1 ~20ms * 0.02
class2 20-50ms 0.02 0.05
class3 50-100ms 0.05 0.1
class4 100-200ms 0.1 0.2
class5 200-500ms 0.2 0.5
class6 500-1000ms 0.5 1.0
class7 1000ms~ 1.0 *
</rule>
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment