You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
Get memory metrics by fluent-bit -i process_exporter_metrics -p metrics="memory" -o stdout, e.g. process_memory_bytes{name="rsyslogd",pid="167",ppid="1",type="rss"} = 118
Look at actual RSS values with cat /proc/167/status | grep Rss:
RssAnon: 472 kB
RssFile: 0 kB
RssShmem: 0 kB
Actual behaviour process_memory_bytes{type="rss"} gives page count but metric name is memory bytes.
Expected behavior
The metric value of process_memory_bytes{type="rss"} should be set multiplied by the system's page size, in this case ~472 000.
Your Environment
Version used: fluent-bit 3.1.4
The text was updated successfully, but these errors were encountered:
Bug Report
In https://github.com/fluent/fluent-bit/blob/master/plugins/in_process_exporter_metrics/pe_process.c#L1105 the RSS memory that is scraped from /proc//stat is set as "memory_bytes".
In https://man7.org/linux/man-pages/man5/proc_pid_stat.5.html it is though specified that the rss value is given in number of pages.
To Reproduce
Get memory metrics by
fluent-bit -i process_exporter_metrics -p metrics="memory" -o stdout
, e.g.process_memory_bytes{name="rsyslogd",pid="167",ppid="1",type="rss"} = 118
Look at actual RSS values with
cat /proc/167/status | grep Rss
:Actual behaviour
process_memory_bytes{type="rss"}
gives page count but metric name is memory bytes.Expected behavior
The metric value of
process_memory_bytes{type="rss"}
should be set multiplied by the system's page size, in this case ~472 000.Your Environment
The text was updated successfully, but these errors were encountered: