invantive documentation
Invantive Support ForumsLog In / Sign Up

GeneralInformation: Matomo Matomo DB Stats General Information

read only REST

  • Catalog: Matomo
  • Schema: DBStats
  • Label: Matomo DB Stats General Information

Can only retrieve data.

Summary

Instance-wide site count, user count and total database space used, over the whole instance, not any one tracked site. Requires superuser access and the DBStats plugin active on the instance.

API Source

  • Endpoint: /index.php?module=API&method=DBStats.getGeneralInformation&format=json

Performance Characteristics

Characteristic Value
Write rows per minute 3,620

The result can be cached on the client.

Table Columns

The columns of the table GeneralInformation are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

Name Data Type Label Required Marks Documentation
site_count int32 itgen_mat_site_count filters on the platform, writable, [0] Number of sites configured on this instance.
total_space_used_bytes int64 itgen_mat_total_space_used_bytes filters on the platform, writable, [2] Total space used by Matomo's own database, in bytes.
user_count int32 itgen_mat_user_count filters on the platform, writable, [1] Number of users configured on this instance.