summaryrefslogtreecommitdiffstats
path: root/example_config.toml
blob: 49abd754e03e7bbcbd8c32d5e245dad7bd24e1ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# all three attributes are required for every item
# file names are considered unique: so only 1 regex may be configured for a file
# do not use a dot in an alias
# only named captures will be used
# named capture need to match a numeric value (int or a float like 10.654321)
# \s, \d, \b a.s.o need to be escaped for toml
# for antikoerper, every regex should start like this:
# (?P<ts>\\d{9,})\\s

[[item]]
file = "/var/log/antikoerper/temp.zone1"
regex = "(?P<ts>\\d{9,})\\s(?P<t1>\\d+)"
alias = "temp"

[[item]]
file = "/var/log/antikoerper/os.load"
regex = "(?P<ts>\\d{9,})\\s(?P<load1m>\\d+\\.\\d\\d)\\s(?P<load5m>\\d+\\.\\d\\d)\\s(?P<load15m>\\d+\\.\\d\\d)\\s"
alias = "load"

[[item]]
alias = "memory"
file = "/var/log/antikoerper/os.memory"
regex = "(?P<ts>\\d{9,})\\s.*\\s+(?P<total>\\d+)\\s+(?P<used>\\d+)\\s+(?P<free>\\d+)\\s+(?P<shared>\\d+)\\s+(?P<cache>\\d+)\\s+(?P<avail>\\d+)"

[[item]]
alias = "battery"
file = "/var/log/antikoerper/os.battery"
regex = "(?P<ts>\\d{9,})\\s.*\\s(?P<percent>\\d+)%"

[[item]]
alias = "disk-root"
file = "/var/log/antikoerper/os.partition-root"
regex = "(?P<ts>\\d{9,})\\s.*\\d+\\s+(?P<used>\\d+)\\s+(?P<free>\\d+)\\s+(?P<percent>\\d+)%"

[[item]]
alias = "disk-boot"
file = "/var/log/antikoerper/os.partition-boot"
regex = "(?P<ts>\\d{9,})\\s.*\\d+\\s+(?P<used>\\d+)\\s+(?P<free>\\d+)\\s+(?P<percent>\\d+)%"

[[item]]
alias = "disk-var"
file = "/var/log/antikoerper/os.partition-var"
regex = "(?P<ts>\\d{9,})\\s.*\\d+\\s+(?P<used>\\d+)\\s+(?P<free>\\d+)\\s+(?P<percent>\\d+)%"

[[item]]
alias = "disk-home"
file = "/var/log/antikoerper/os.partition-home"
regex = "(?P<ts>\\d{9,})\\s.*\\d+\\s+(?P<used>\\d+)\\s+(?P<free>\\d+)\\s+(?P<percent>\\d+)%"

[[item]]
alias = "disk-win"
file = "/var/log/antikoerper/os.partition-win"
regex = "(?P<ts>\\d{9,})\\s.*\\d+\\s+(?P<used>\\d+)\\s+(?P<free>\\d+)\\s+(?P<percent>\\d+)%"

[[item]]
alias = "process-count"
file = "/var/log/antikoerper/os.process_count"
regex = "(?P<ts>\\d{9,})\\s(?P<count>\\d+)"