summaryrefslogtreecommitdiff
path: root/net-mgmt/grok_exporter/files/config.yml.in
blob: 11d8d917ecb2a7b7d6f972709e35ddd0666c996b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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