Keepalived doesn’t gain quorum when tracked process comes up

I’m using keepalived v2.0.19 on CentOS7 with a single vrrp instance tracking haproxy process presence. Unfortunately the vrrp instance never leaves the FAULT state after a restart of haproxy process Here is my config vrrp_track_process chk_service { process haproxy weight 0 } vrrp_instance VI_1 { interface eth0 state MASTER virtual_router_id 51 priority 101 advert_int 1…

Convert json file to prometheus metrics

I have nginx json access log like this, a file that append sample like this to end of file. { “time”: “2019-11-27T08:23:39+00:00”, “msec”: 1574843019.787, “ip”: “91.133.248.69”, “agent_name”: “firefox”, “agent_version”: “70”, “agent_os”: “linux”, “agent_os_version”: “”, “agent_category”: “pc”, “agent_vendor”: “mozilla”, “agent_hash”: “5c12a77e”, “geo_country_code”: “IR”, “geo_latitude”: “35.69610”, “geo_longitude”: “51.42310”, “geo_accuracy_radius”: “50”, “geo_continent_name”: “Asia”, “geo_isp”: “Mobile Communication Company of…