Skip to content

Commit 81e15c0

Browse files
committed
release 0.2.2
1 parent c65f96c commit 81e15c0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CONFIG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ input:
6262
type: file
6363
path: /var/log/sample.log
6464
readall: false
65+
poll_interval_seconds: 5 # should not be needed in most cases, see below
6566
```
6667

6768
The `readall` flag defines if `grok_exporter` starts reading from the beginning or the end of the file.
@@ -70,6 +71,15 @@ True is good for debugging, because we process all available log lines.
7071
False is good for production, because we avoid to process lines multiple times when `grok_exporter` is restarted.
7172
The default value for `readall` is `false`.
7273

74+
On `poll_interval_seconds`: You probably don't need this. The internal implementation of `grok_exporter`'s
75+
file input is based on the operating system's file system notification mechanism, which is `inotify` on Linux,
76+
`kevent` on BSD (or macOS), and `ReadDirectoryChangesW` on Windows. These tools will inform `grok_exporter` as
77+
soon as a new log line is written to the log file, and let `grok_exporter` sleep as long as the log file doesn't
78+
change. There is no need for configuring a poll interval. However, there is one combination where the above
79+
notifications don't work: If the logging application keeps the logfile open and the underlying file system is NTFS
80+
(see [#17](https://github.com/fstab/grok_exporter/issues/17)). For this specific case you can configure a
81+
`poll_interval_seconds`. This will disable file system notifications and instead check the log file periodically.
82+
7383
### Stdin Input Type
7484

7585
The configuration for the `stdin` input type does not have any additional parameters:

release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -e
1010
cd $GOPATH/src/github.com/fstab/grok_exporter
1111
rm -rf dist
1212

13-
export VERSION=0.2.2-SNAPSHOT
13+
export VERSION=0.2.2
1414

1515
export VERSION_FLAGS="\
1616
-X github.com/fstab/grok_exporter/exporter.Version=$VERSION \

0 commit comments

Comments
 (0)