grok_exporter
grok_exporter copied to clipboard
Very High Memory Usage of Grok Exporter.
Hi. I am using grok_exporter v 1.0.0.RC1.
global: config_version: 2 input: type: file path: access.log-20200807 readall: true grok: patterns_dir: grok_exporter-1.0.0.RC1.linux-amd64/patterns metrics: - type: counter name: pattern_count help: Total number of request patterns, along-with Method and Response Code. match: '%{NGINX}' labels: method: '{{.request_type}}' path: '{{.pattern_url}}' code: '{{.response_code}}' server: host: localhost port: 9144
My NGINX grok pattern is below. NGINX %{NUMBER:response_code} %{NUMBER:notrequired} %{NUMBER:notrequired} %{NUMBER:notrequired} [%{HTTPDATE:access_time}] "(?:%{WORD:request_type} %{NOTSPACE:pattern_url}(?: HTTP/%{NUMBER:httpversion})?|-)"
Grok Exporter is constantly using 76% memory. Is it expected? Or am I doing something terribly wrong?
P.S - Irix mode is off, so these are absolute usage percentages.
P.S - Its a 32GB machine.