-
Notifications
You must be signed in to change notification settings - Fork 154
Closed
Description
I have a fairly frequently updated log file that I am using grok exporter to count specific log entries. I see that the resident memory usage by the exporter is quite high and growing. This happens 3/4 of the time in my env.
The config is:
global:
config_version: 2
grok:
additional_patterns:
- BASE10NUM (?<![0-9.+-])(?>[+-]?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+)))
- DATA .*?
- NUMBER (?:%{BASE10NUM})
- DAEMON [a-zA-Z_\-]+
- NAELOGLEVEL LOG_[\S+]
- MESSAGE [\S\s\S]?*
- YEAR (?>\d\d){1,2}
- HOUR (?:2[0123]|[01]?[0-9])
- MINUTE (?:[0-5][0-9])
- SECOND (?:(?:[0-5]?[0-9]|60)(?:[:.,][0-9]+)?)
- TIME (?!<[0-9])%{HOUR}:%{MINUTE}(?::%{SECOND})(?![0-9])
- MONTHNUM (?:0?[1-9]|1[0-2])
- MONTHDAY (?:(?:0[1-9])|(?:[12][0-9])|(?:3[01])|[1-9])
- ISO8601_TIMEZONE (?:Z|[+-]%{HOUR}(?::?%{MINUTE}))
- TIMESTAMP_ISO8601 %{YEAR}-%{MONTHNUM}-%{MONTHDAY}[T ]%{HOUR}:?%{MINUTE}(?::?%{SECOND})?%{ISO8601_TIMEZONE}?
- LEVEL (LOG_)?([Aa]lert|ALERT|[Tt]race|TRACE|[Dd]ebug|DEBUG|DBG|[Nn]otice|NOTICE|[Ii]nfo|INFO|[Ww]arn?(?:ing)?|WARN?(?:ING)?|[Ee]rr|ERR?(?:OR)?|[Cc](rit)+(?:ical)?|CRIT?(?:ICAL)?|[Ff]atal|FATAL|[Ss]evere|SEVERE|EMERG(?:ENCY)?|[Ee]merg(?:ency)?)
input:
path: /var/log/messages
poll_interval_seconds: 5
type: file
metrics:
- help: all log entries seperated by daemon
labels:
daemon: '{{.daemon}}'
match: '%{TIMESTAMP_ISO8601:time} %{DAEMON:daemon}.*%{LEVEL:level}.*'
name: benchmark_all_daemon_log_entry_counts
type: counter
- help: count of panic entries in the log by go daemons
labels:
daemon: '{{.daemon}}'
match: '%{TIMESTAMP_ISO8601:time} %{DAEMON:daemon}.*panic.*'
name: benchmark_go_daemon_log_panic_counts
type: counter
[other confidential counters]
Metadata
Metadata
Assignees
Labels
No labels
