keepalived-exporter icon indicating copy to clipboard operation
keepalived-exporter copied to clipboard

Occasional wrong result keepalived_up=0

Open bpetermannS11 opened this issue 3 years ago • 1 comments

Occasionally the exporter returns no keepalived metrics and keepalived_up = 0 even though the keepalived works fine. In the exporter log there are lines

level=error msg="keepalived.data and keepalived.stats datas are not synced"
level=error msg="No data found to be exported" error="keepalived.data and keepalived.stats datas are not synced"

keepalived-exporter version 1.2.0 on Ubuntu 18.04.5 LTS, keepalived version is 1.3.9 without support for JSON output, so stats/data is used.

One explanation could be that keepalived takes too long to write the stats or data file after the SIGSTATS/SIGDATA signal. Waiting 10 ms as in keepalived_container_collector_host.go:115 may not always be enough.

bpetermannS11 avatar Sep 07 '21 11:09 bpetermannS11

I have the same problem

bondif avatar Sep 28 '21 16:09 bondif

Sorry for the very long delay. I'll investigate soon.

mehdy avatar Jan 27 '23 08:01 mehdy