Open spaullilly opened 1 week ago
Important note:
/usr/bin/chrony_exporter --chrony.address="unix:///run/chrony/chronyd.sock" --log.level=debug --collector.serverstats --collector.chmod-socket
I also set the timeout to 30s and still getting the same errors
I figured out what was going on with the bind: already in use
issue. No need to look further here. Though a caching layer would be helpful here. We have 2 scrapers running and the 2nd request fails with this.
But the I/O is happening randomly (more persistently). Some calls work within a second, while others will get tracking and then timeout on getting serverstats and some will simple fail to get both within the timeout. I have the timeout set to 30s (previously 5s) and at that duration completion, it shows this error.
Maybe this is a issue with chronyd resources?
I guess the way the unix socket works, you can only make one connection at a time.
We could change the unix socket code to make one shared connection.
I switched to running the exporter in the same container as the chronyd server. I'm scraping it every 60s.
What I am seeing:
It works sometimes though. Any idea what could be the issue?