fluent-plugin-prometheus icon indicating copy to clipboard operation
fluent-plugin-prometheus copied to clipboard

prometheus_tail_monitor does not refresh deleted/rotated files.

Open SarthakSahu opened this issue 4 years ago • 6 comments

We are using tail plugin with "pos_file_compaction_interval" option. With this option pos_file is getting updated by removing all deleted tailed file information. We are using the prometheus_tail_monitor plugin to get the information of tailed files.

Issue: When the tailed files are getting deleted/rotated, even though the pos_file is updated, But metrics fluentd_tail_file_inode and fluentd_tail_file_position are not updated and still shows the information of deleted/rotated files. As a result of this the amount of data exposed by these metrics are increasing continuously.

Found a similar discussion in google groups. https://groups.google.com/g/fluentd/c/KsoAoTp62dA

SarthakSahu avatar Apr 26 '21 08:04 SarthakSahu

Any update on this issue?

archupriya3 avatar Oct 17 '22 05:10 archupriya3

Hi, I am facing the same issue with td-agent-4.3.1-1.el8.x86_64 (fluent-plugin-prometheus-2.0.2, prometheus-client-2.1.0). Any updates on fixing this?

aggarwalShivani avatar Jan 06 '23 11:01 aggarwalShivani

Any updates on this issue? We are facing the same issue with 4.4.2 td-agent rpm as well.

archupriya3 avatar Aug 28 '23 06:08 archupriya3

Any updates on this issue? We are facing the same issue with 4.5.0 td-agent rpm.

moharana-subhashree avatar Sep 21 '23 09:09 moharana-subhashree

Any updates on this issue? We are facing the same issue with fluent-package-5.0.2-1 rpm.

moharana-subhashree avatar Apr 03 '24 11:04 moharana-subhashree