Explanation of "ActiveUsers" stat

I’m trying to better understand exactly what the activeUsers stat available on /api/admin/stats actually is.

https://github.com/grafana/grafana/blob/c395237710eaa7629e9f7d321082da9100f1f463/public/app/features/admin/partials/stats.html has a note claiming it is active users in the last 14 days.

https://github.com/grafana/grafana/blob/c42a232644e5bb3597a7d0bfbc331b0e42af3f48/public/app/stores/ServerStatsStore/ServerStatsStore.ts claims it is 30 days.

So what is the correct number of days?

Furthermore, does this count anonymous (not logged in) users?

If I have multiple Grafana instances connected to a single backend database, should this metric be the same across all instances, or will each have a different value for that metric?


It’s a user that have been logged in sometime during the last 30 days - no anonymous users. This is the same for all instances since the value is calculated based on the user table in database.