grok_exporter icon indicating copy to clipboard operation
grok_exporter copied to clipboard

Very High Memory Usage of Grok Exporter.

Open Yagyansh opened this issue 4 years ago • 8 comments

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?

image P.S - Irix mode is off, so these are absolute usage percentages.

image P.S - Its a 32GB machine.

Yagyansh avatar Aug 07 '20 12:08 Yagyansh