Update net-mgmt/grok_exporter to 1.0.0.RC4, set @sample on its config file, and detach from the terminal when daemonizing. PR: 244613 Event: September 2020 Bugathon Approved by: dbaio (ports) Approved by: Gasol Wu <gasol.wu@gmail.com> (maintainer, earlier version) Sponsored by: Axcient
22 lines
314 B
YAML
22 lines
314 B
YAML
global:
|
|
config_version: 3
|
|
|
|
input:
|
|
type: file
|
|
path: /var/log/messages
|
|
readall: true
|
|
|
|
imports:
|
|
- type: grok_patterns
|
|
dir: %%DATADIR%%/patterns
|
|
|
|
metrics:
|
|
- type: counter
|
|
name: log_messages_total
|
|
help: Number of lines in /var/log/messages
|
|
match: '%{GREEDYDATA}'
|
|
|
|
server:
|
|
host: localhost
|
|
port: 9144
|