Difference between revisions of "Platform Team/Usage Statistics"

From Sugar Labs
Jump to navigation Jump to search
Line 9: Line 9:
 
* ''absolute''<br>value to use as-is, e.g., amount of free disk space;
 
* ''absolute''<br>value to use as-is, e.g., amount of free disk space;
 
* ''uptime''<br>number of seconds since event start, e.g., how long window is active; if event is not active, value will be reset to zero;
 
* ''uptime''<br>number of seconds since event start, e.g., how long window is active; if event is not active, value will be reset to zero;
* ''relative-count''<br>a counter, number of times event was registered since upstream event start; if upstream event is not active, value will be reset to zero, e.g., '''journal.creates''' will be incremented if Journal runs and will be resent to zero after Journal closing;
+
* ''counter''<br>counter value that is being incremented all time without resetting to zero;
* ''absolute-count''<br>counter value that is being incremented all time without resetting to zero.
+
* ''relative-counter''<br>a counter, number of times event was registered since upstream event start; if upstream event is not active, value will be reset to zero, e.g., '''journal.creates''' will be incremented if Journal runs and will be resent to zero after Journal closing.
  
 
== Statistics ==
 
== Statistics ==
Line 23: Line 23:
 
** '''journal.uptime''' ''uptime''<br>How long Journal is running.
 
** '''journal.uptime''' ''uptime''<br>How long Journal is running.
 
** '''journal.active''' ''uptime''<br>How long Journal window is on top.
 
** '''journal.active''' ''uptime''<br>How long Journal window is on top.
** '''journal.creates''' ''relative-count''<br>Number of create requests sent from the Journal window.
+
** '''journal.creates''' ''relative-counter''<br>Number of create requests sent from the Journal window.
** '''journal.updates''' ''relative-count''<br>Number of update requests sent from the Journal window.
+
** '''journal.updates''' ''relative-counter''<br>Number of update requests sent from the Journal window.
** '''journal.deletes''' ''relative-count''<br>Number of delete requests sent from the Journal window.
+
** '''journal.deletes''' ''relative-counter''<br>Number of delete requests sent from the Journal window.
 
* '''''activity'''''<br>Activities related stats; specified only for the particular activity.
 
* '''''activity'''''<br>Activities related stats; specified only for the particular activity.
 
** '''activity.uptime''' ''uptime''<br>How long Activity is running.
 
** '''activity.uptime''' ''uptime''<br>How long Activity is running.
 
** '''activity.active''' ''uptime''<br>How long Activity window is on top.
 
** '''activity.active''' ''uptime''<br>How long Activity window is on top.
** '''activity.instances''' ''absolute-count''<br>How many instances launched.
+
** '''activity.instances''' ''counter''<br>How many instances launched.
** '''activity.new''' ''relative-count''<br>How many running instances with new Journal entity.
+
** '''activity.new''' ''relative-counter''<br>How many running instances with new Journal entity.
** '''activity.resumed''' ''relative-count''<br>How many running instances with resumed Journal entity.
+
** '''activity.resumed''' ''relative-counter''<br>How many running instances with resumed Journal entity.
** '''activity.buddies''' ''absolute-count''<br>Number of buddies Activity is interacting with for all running instances.
+
** '''activity.buddies''' ''counter''<br>Number of buddies Activity is interacting with for all running instances.
 
* '''''application'''''<br>Applications related stats in non-Sugar mode; specified only for the particular application.
 
* '''''application'''''<br>Applications related stats in non-Sugar mode; specified only for the particular application.
 
** '''application.uptime''' ''uptime''<br>How long application is running.
 
** '''application.uptime''' ''uptime''<br>How long application is running.

Revision as of 11:04, 27 September 2012

Summary

Sugar usage statistics might be very useful from, e.g., an educational or research point of view. Statistics might be anonymous or personalized (by taking special efforts to keep information secure and local for use only by a particular deployment).

Counter types

Measured statistics values might be one of the following types:

  • absolute
    value to use as-is, e.g., amount of free disk space;
  • uptime
    number of seconds since event start, e.g., how long window is active; if event is not active, value will be reset to zero;
  • counter
    counter value that is being incremented all time without resetting to zero;
  • relative-counter
    a counter, number of times event was registered since upstream event start; if upstream event is not active, value will be reset to zero, e.g., journal.creates will be incremented if Journal runs and will be resent to zero after Journal closing.

Statistics

All types of statistics are identified by IDs in a dot separated hierarchy. This makes it possible to refer to the particular type or level of data.

  • shell
    Shell related stats.
    • shell.uptime uptime
      How long Shell is running.
    • shell.active uptime
      How long Shell window is on top.
    • shell.friends absolute
      Number of buddies in the Groups view.
  • journal
    Journal related activity.
    • journal.uptime uptime
      How long Journal is running.
    • journal.active uptime
      How long Journal window is on top.
    • journal.creates relative-counter
      Number of create requests sent from the Journal window.
    • journal.updates relative-counter
      Number of update requests sent from the Journal window.
    • journal.deletes relative-counter
      Number of delete requests sent from the Journal window.
  • activity
    Activities related stats; specified only for the particular activity.
    • activity.uptime uptime
      How long Activity is running.
    • activity.active uptime
      How long Activity window is on top.
    • activity.instances counter
      How many instances launched.
    • activity.new relative-counter
      How many running instances with new Journal entity.
    • activity.resumed relative-counter
      How many running instances with resumed Journal entity.
    • activity.buddies counter
      Number of buddies Activity is interacting with for all running instances.
  • application
    Applications related stats in non-Sugar mode; specified only for the particular application.
    • application.uptime uptime
      How long application is running.
    • application.active uptime
      How long application window is on top.
  • network
    Network related stats.
    • network.uptime uptime
      How long client is connected to the Internet.
    • network.school uptime
      How long client is connected to school network.
  • system
    System related stats.
    • system.uptime uptime
      System uptime value.
    • system.diskfree absolute
      How many storage space is free, in kilobytes, for the home directory.

Implementation

See also

  • Paraguayan Activity usage analysis basing on Journal records.
  • Australian request for statistics gathering.