Closed arkaditya closed 3 years ago
Hi,
Would you please also share your keepalived -v
and keepalived-exporter --version
output and the options you are passing to the exporter?
$ keepalived-exporter --version
INFO[0000] Keepalived Exporter build_time="2021-03-06_21:06:21_+0330" commit=4c95fa6 version=1.2.0
keepalived -v
Keepalived v1.3.5 (03/19,2017), git commit v1.3.5-6-g6fa32f2
Copyright(C) 2001-2017 Alexandre Cassen, <acassen@gmail.com>
Build options: PIPE2 LIBNL3 RTA_ENCAP RTA_EXPIRES RTA_PREF RTA_VIA FRA_OIFNAME FRA_SUPPRESS_PREFIXLEN FRA_TUN_ID RTAX_CC_ALGO RTAX_QUICKACK LIBIPTC LIBIPSET_DYNAMIC LVS LIBIPVS_NETLINK VRRP VRRP_AUTH VRRP_VMAC SOCK_NONBLOCK SOCK_CLOEXEC FIB_ROUTING INET6_ADDR_GEN_MODE SNMP_V3_FOR_V2 SNMP SNMP_KEEPALIVED SNMP_CHECKER SNMP_RFC SNMP_RFCV2 SNMP_RFCV3 SO_MARK
I added some verbose statements to collector module and rebuild the exporter. Debug logs:
time="2021-07-01T16:49:46Z" level=info msg="Listening on address: :9165"
keepalived-exporter[13575]: time="2021-07-01T16:50:12Z" level=info msg="DEBUG: " keepalivedUp : =1.0
keepalived-exporter[13575]: time="2021-07-01T16:50:12Z" level=error msg="Failed to open /tmp/keepalived.stats" error="open /tmp/keepalived.stats: no such file or directory"
keepalived-exporter[13575]: time="2021-07-01T16:50:12Z" level=info msg="DEBUG: " VRRPStats Size=0
keepalived-exporter[13575]: time="2021-07-01T16:50:12Z" level=error msg="No data found to be exported" error="open /tmp/keepalived.stats: no such file or directory"
What arguments are you passing to the keepalived-exporter when running it?
Please paste the full keepalived -v
output and what's your OS?
We are using CentOs7 and I am not passing any arguments when running the keepalived-exporter
Closing the issue, as it was due to SELINUX=enforcing in etc/selinux/config. Setting it to disabled , getting the metrics.
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " keepalivedUp : =1.0
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " VRRPStats Size=1
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " VRRPStats->AdvertRcvd =2
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " VRRPStats->AdvertSent =297
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " VRRPStats->BecomeMaster =1
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " VRRPStats->ReleaseMaster =1
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " VRRPStats->PacketLenErr =0
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " VRRPStats->AdvertIntervalErr =0
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " VRRPStats->IPTTLErr =0
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " VRRPStats->InvalidTypeRcvd =0
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " VRRPStats->AddrListErr =0
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " VRRPStats->InvalidAuthType =0
keepalived-exporter[13575]: time="2021-07-01T18:35:12Z" level=info msg="DEBUG: " VRRPStats->AuthTypeMismatch =0
Why don't i have these two files With your operator
keeplaived version 1.3.5 - 1.3.9 (one host in 1.3.9 and 2 other in 1.3.5).
I have deployed keepalived-exporter as a service using the keepalived-exporter binary from the tar file on our keepalived/haproxy hosts.
/tmp permission:
drwxrwxrwt. 10 root root 243 Jun 29 22:21 tmp
Because of this missing keepalived.data file, we are not able to get the keepalived metrics even when the scrape is happening on correct port using endpoints.
The keepalived service is up and running
The leepalived servers do not have
killall
binary