Turn on "without the stats tool" stats collection

29 views
Skip to first unread message

Adrian Fish

unread,
May 1, 2025, 6:39:08 AMMay 1
to sakai-user, sakai-dev
Hi all,

I think we should turn on stats collection in sites without the need
for the stats tool to be added to the site. Having to add the tool is
a throwback to the olden days of yore when we worried more about
backend load. Conversations uses the stats service to store and report
on conversations statistics, but it can be confusing when you don't
see any stats appearing because the stats tool hasn't been added.

So, we can set "collectEventsFor...@org.sakaiproject.sitestats.api.StatsUpdateManager.target=false"

and stats will be collected all the time in every site.

What do you think?

Adrian.

Adam Marshall

unread,
May 1, 2025, 7:33:18 AMMay 1
to Adrian Fish, sakai-user, sakai-dev, Adam Marshall
Totes agree!

Adam

On 01/05/2025, 11:39, "saka...@apereo.org <mailto:saka...@apereo.org> on behalf of Adrian Fish" <saka...@apereo.org <mailto:saka...@apereo.org> on behalf of adrian...@gmail.com <mailto:adrian...@gmail.com>> wrote:


Hi all,


I think we should turn on stats collection in sites without the need
for the stats tool to be added to the site. Having to add the tool is
a throwback to the olden days of yore when we worried more about
backend load. Conversations uses the stats service to store and report
on conversations statistics, but it can be confusing when you don't
see any stats appearing because the stats tool hasn't been added.


So, we can set "collectEventsFor...@org.sakaiproject.sitestats.api.StatsUpdateManager.targ <mailto:collectEventsFor...@org.sakaiproject.sitestats.api.StatsUpdateManager.targ>et=false"


and stats will be collected all the time in every site.


What do you think?


Adrian.


--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org <mailto:sakai-dev+...@apereo.org>.
To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/sakai-dev/CAM0rk3EDYCJFk0dx-M6f7N0OF78eMSQjPP62c7%3DrNL7bsCcAmQ%40mail.gmail.com <https://groups.google.com/a/apereo.org/d/msgid/sakai-dev/CAM0rk3EDYCJFk0dx-M6f7N0OF78eMSQjPP62c7%3DrNL7bsCcAmQ%40mail.gmail.com>.



Wilma Hodges

unread,
May 1, 2025, 12:25:05 PMMay 1
to Adam Marshall, Adrian Fish, sakai-user, sakai-dev
+1 Great idea.

Having Stats collection on all the time would also avoid the problem that sometimes crops up where instructors all of a sudden decide they want to use Statistics, but they didn't activate the tool at the start of the term, so they don't get any data from the time before it was enabled.

Wilma


Wilma Hodges, Ed.D., UXC
Director of Training & eLearning Initiatives
Longsight, Inc.
 



To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/sakai-dev/33397748-2791-4368-9E27-4F0E9512F918%40ox.ac.uk.

Adrian Fish

unread,
May 1, 2025, 4:10:03 PMMay 1
to Wilma Hodges, Adam Marshall, sakai-user, sakai-dev
Exactly. It's always been a performance thing, I think. IMO we need
to deal with the performance issues if they crop up. On all the time
stats are the first stepping stone to built in analytics, if you ask
me. I've just merged a PR into master to turn them on all the time -
you can revert that behaviour by just setting a sakai property, if you
have local issues with performance.

Charles Severance

unread,
May 1, 2025, 7:04:33 PMMay 1
to Adrian Fish, Wilma Hodges, Adam Marshall, sakai-user, dev sakai
It *think* that if they are on by default - there also needs to be a process that cleans up data so databases don’t get too large. Something like expire data after 3-4 months automatically by default - which can be extended by a property.

Four months means it covers most classes and folks can extend if they like.

Just my $0.02.

/Cjicl
> To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/sakai-dev/CAM0rk3HD7MSXXuzgTwN9k3RnxcrCKWO5v0yTg_mt%3DcEQPChxcQ%40mail.gmail.com.

Matthew Jones

unread,
May 2, 2025, 6:35:58 PMMay 2
to Charles Severance, Adrian Fish, Wilma Hodges, Adam Marshall, sakai-user, dev sakai
From what I remember of this, the data that sitestats generated/aggregated wasn't too big of a problem but more of the size of the event log that continued to grow. There was an Event Log Purge quartz job that could be scheduled but ideally a school may want to just archive their event logs manually or use the external database properties. 

I think it's probably fine to have it run by default and from what I remember was efficient once it did the initial backfill (unless it was always running). But I also don't run any instances in production so 🤷.



You received this message because you are subscribed to the Google Groups "Sakai Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-user+...@apereo.org.
To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/sakai-user/E3A3A2E2-F02A-49D9-A8FD-1FDC713DC65C%40umich.edu.
Reply all
Reply to author
Forward
0 new messages