Skip to content

Commit

Permalink
Merge pull request #3 from maier/master
Browse files Browse the repository at this point in the history
v0.2.0
  • Loading branch information
maier authored Dec 15, 2017
2 parents c32327c + 08bb7c6 commit b140c3a
Show file tree
Hide file tree
Showing 11 changed files with 2,484 additions and 468 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ dist/
# codecov.io repo token and report
.codecov
coverage.txt
coverage.xml
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
# v0.2.0
* adjust handling of tail behavior for rotated logs and nil lines
* fix: statsd base metric name, add separator
* check destination, add api config
# v0.1.1
* update readme, clarify metric type descriptions
* common appstats package
# v0.1.0
* Initial development release
42 changes: 27 additions & 15 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ Create one config (JSON, YAML, or TOML) in `--log-conf-dir` for each distinct lo
1. `metrics` a list of:
1. `match` regular expression to identify lines and optionally extract named subexpressions for value and metric name
1. `name` a static string to use as the metric name or a template for naming the metric if named subexpressions were used in match regex
1. `type` what type of metric
* `c` counter
* `g` gauge
* `ms` timing (treated as a histogram)
* `h` histogram
* `s` set (ala statsd set metrics)
* `t` text
1. `type` what type of metric (all numbers are 64bit)
* `c` counter int
* `g` gauge int or float
* `ms` timing (treated as histogram) value can be a float (3.12) or duration (25ms, 3.2s, 1m10s, etc.) durations are converted to milliseconds, floats are assumed to already represent milliseconds
* `h` histogram float
* `s` set (ala statsd set metrics) unique string to count
* `t` text string

> NOTE:
> * any metric which does not have a `type` will be treated as a counter.
Expand All @@ -167,3 +167,5 @@ Create one config (JSON, YAML, or TOML) in `--log-conf-dir` for each distinct lo
1. Build `go build -o circonus-logwatchd`
1. Ensure target directories exist `mkdir -p /opt/circonus/{sbin,etc,etc/log.d}`
1. Install `cp circonus-logwatchd /opt/circonus/sbin`

[![codecov](https://codecov.io/gh/maier/circonus-logwatch/branch/master/graph/badge.svg)](https://codecov.io/gh/maier/circonus-logwatch)
Loading

0 comments on commit b140c3a

Please sign in to comment.