Rsync Stats

7 views
Skip to first unread message

Clay Jackson

unread,
Apr 23, 2026, 12:19:15 PM (yesterday) Apr 23
to weewx-development
I've been using rsync almost since I started using weewx.   

It occurred to me that the rstats generated by rsyncupload are a great way to track my ISP's performance; both short term and over time.   I thought at first about just writing a script to parse the log and extract then data; but then wondered what it would take to use weewx itself.

I used claude.ai to help me understand the code, and what it would take; and looked at #951 for some ideas om how to patch rsync, and eventually came up with the attached changes to rsyncupload.py and reportengine.py to add a "record_stats" config option and then a service to actually put the three metrics into the database.

It's pretty lightweight, and hasn't broken anything in a week for running in my system; I use mqtt to send the data out of weewx and into Zabbix for alerts if the speed goes below a threshold or gets stale.

I'd appreciate thoughts on this.  If it's thought to be a worthwhile addition, I'll submit a PR.

Clay Jackson


weewx-rsync-metrics.tar.gz
weewx_rsync.zip

Vince Skahan

unread,
Apr 23, 2026, 1:02:52 PM (yesterday) Apr 23
to weewx-development
Perhaps write a service people can optionally install ?

Doing a quick grep of my logs for the last month I see uploads all taking 0.7 - 3.0 seconds so personally no need here.  Plenty fast enough for my 300 second archive interval.

Reply all
Reply to author
Forward
0 new messages