Commit Graph

3 Commits

Author SHA1 Message Date
Mario Trangoni
a0059f793e systemd.go: Fix gosec issue.
See,
$ gometalinter --vendor ./...
systemd.go:49:⚠️ Errors unhandled.,LOW,HIGH (gosec)
2018-12-04 17:13:17 +01:00
Silke
0c405faf87 Add nosystemd build tag
This allows building the exporter without systemd headers, eg:

    env CGO_ENABLED=0 go build -tags nosystemd

Closes #11
2018-04-19 13:34:18 +02:00
Silke
82c04256dc Implement collection from the systemd journal
The following flags configure this usage:

- systemd.enable:       enable collection from systemd.
- systemd.unit:         systemd unit, postfix.service by default.
- systemd.slice:        systemd slice, overrides the unit.
- systemd.journal_path: path to the systemd journal directory.

Closes #2
2018-01-28 15:09:32 +01:00