I'm not seeing any informative system tags for Perspective like there are for DB or MQTT connections.
If I wanted to track the number of active sessions historically, is my best option to make a timed script that uses system.perspective.getSessionInfo
to figure out how many are active and then write it to a memory tag?
Your approach is the first thing that came to mind. It would obviously be better to subscribe to a counter value somewhere rather than calculate this yourself, but if you need this functionality now, that seems like it'll work (in combination with setting tag history on that memory tag).
I just wanted to mention that if you use EAM, there IS a Perspective sessions-specific Gateway tag. It doesn't look like that count is included without the EAM module, though.