Skip to content
This repository

Compare: Example

Example.md
... ... @@ -21,7 +21,31 @@ Tue Nov 15 00:48:07 [conn2] command admin.$cmd command: { replSetHeartbeat: "sha
21 21
22 22 ## Configuration
23 23
24   -see [configuration example][].
  24 + <source>
  25 + type tail
  26 + format /^(?<time>[^ ]* [^ ]*[ ]*[^ ]* [0-9]{2}:[0-9]{2}):(?<second>[0-9]{2}) \[(?<key1>[^\]]*)\] (?<key2>[^ ]*) (?<key3>[^ ]*) (?<message>.*)$/
  27 + time_format %a %b %e %H:%M
  28 + path /var/log/mongo/mongo.log
  29 + tag aggr_delta*
  30 + </source>
  31 +
  32 + <match aggr_delta**>
  33 + ...
  34 + <metrics>
  35 + name two_keys
  36 + partition_by m
  37 + each_key key2,key3
  38 + value_key second
  39 + type float
  40 + </metrics>
  41 + <metrics>
  42 + name one_key
  43 + partition_by m
  44 + each_key key1
  45 + </metrics>
  46 + ...
  47 +
  48 +see [configuration example][] more detail.
25 49
26 50 ## Result
27 51
Something went wrong with that request. Please try again.