Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No data after a few minutes with rsyslog 8.2108.0 or more recents versions #2

Open
mvrk69 opened this issue May 17, 2022 · 2 comments
Assignees

Comments

@mvrk69
Copy link

mvrk69 commented May 17, 2022

Hi,

Seems with 8.2108.0 they did some change on impstats module and this exporter isn't working properly anymore.

If i open the endpoint on Prometheus i only see this:

# HELP python_info Python platform information
# TYPE python_info gauge
python_info{implementation="CPython",major="2",minor="7",patchlevel="5",version="2.7.5"} 1.0
# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 3.7169152e+08
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 1.7321984e+07
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1.6527942203e+09
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 2.37
# HELP process_open_fds Number of open file descriptors.
# TYPE process_open_fds gauge
process_open_fds 7.0
# HELP process_max_fds Maximum number of open file descriptors.
# TYPE process_max_fds gauge
process_max_fds 16384.0
# HELP rsyslog_exporter_collecting_seconds Time spent on collecting metrics
# TYPE rsyslog_exporter_collecting_seconds summary
rsyslog_exporter_collecting_seconds_count 51.0
rsyslog_exporter_collecting_seconds_sum 0.00018858909606933594
# TYPE rsyslog_exporter_collecting_seconds_created gauge
rsyslog_exporter_collecting_seconds_created 1.652794221161721e+09
# HELP rsyslog_exporter_parsing_seconds Time spent on parsing input
# TYPE rsyslog_exporter_parsing_seconds summary
rsyslog_exporter_parsing_seconds_count 6348.0
rsyslog_exporter_parsing_seconds_sum 0.5183594226837158
# TYPE rsyslog_exporter_parsing_seconds_created gauge
rsyslog_exporter_parsing_seconds_created 1.652794221161695e+09
# HELP rsyslog_exporter_version Version of rsyslog_exporter running
# TYPE rsyslog_exporter_version gauge
rsyslog_exporter_version{version="1.0"} 1.0
# HELP rsyslog_exporter_up Is rsyslog_exporter up and connected?
# TYPE rsyslog_exporter_up gauge
rsyslog_exporter_up 1.0
# HELP rsyslog_exporter_last_stats_processed Amount of rsyslog stats processed last time
# TYPE rsyslog_exporter_last_stats_processed gauge
rsyslog_exporter_last_stats_processed 68.0
# HELP rsyslog_exporter_parser_failures_total Amount of rsyslog stats parsing failures
# TYPE rsyslog_exporter_parser_failures_total counter
rsyslog_exporter_parser_failures_total 0.0
# HELP rsyslog_exporter_last_export_timestamp Last metrics export timestamp
# TYPE rsyslog_exporter_last_export_timestamp gauge
rsyslog_exporter_last_export_timestamp 1.652795131903094e+09

Any idea on how to fix it?

@jay7x jay7x self-assigned this May 18, 2022
@jay7x
Copy link
Owner

jay7x commented May 18, 2022

Hi! Thank you for your report.. I'll try to check it this weekend!

@mvrk69
Copy link
Author

mvrk69 commented May 19, 2022

I have my impstats interval at 10s, if i change it to 60s seems to work a bit better, but still from time to time looses data for almost 2h.

I have another server running rsyslog 8.2106 without any problem, so seems the problem started with 8.2108

Attaching my config.
impstats.conf.txt

And the prometheus graphics when i changed the interval to 60s.
prom_rsyslog_interval60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants