I also use Home Assistant. That’s where those graphs I posted early in this thread came from. Unfortunately, now I’ve switch my Roon to a ROCK, so I can’t get that information. I now know when Roon is in a bad way by seeing the power draw off my UPS. When that jumps up a few percent of normal, I know my ROCK NUC is working hard.
I know there is a web interface to restart the Roon Server, but I don’t know of a published API that can do the same. There is a python API, but I haven’t spent the time to dive in to see.
For now, I prevent any issues by only using Roon Ready or AirPlay2 because I know within a few minutes of using Sonos Streaming, my NUC will start pegging a core or two or three.