DatabaseUsageSummary: Matomo Matomo DB Stats Database Usage Summary
read only REST
- Catalog:
Matomo - Schema:
DBStats - Label: Matomo DB Stats Database Usage Summary
Can only retrieve data.
Summary
Storage used by Matomo's own database, broken down by data category ('metric_data', 'report_data', 'tracker_data', 'other_data') - one row per category, 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.getDatabaseUsageSummary&format=json
Performance Characteristics
| Characteristic | Value |
|---|---|
| Write rows per minute | 10,200 |
The result can be cached on the client.
Table Columns
The columns of the table DatabaseUsageSummary 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 |
|---|---|---|---|---|---|
data_ |
int64 |
itgen_mat_data_size | filters on the platform, writable | Data storage used by this category, in bytes. | |
index_ |
int64 |
itgen_mat_index_size | filters on the platform, writable | Index storage used by this category, in bytes. | |
label |
varchar2 |
itgen_mat_label | filters on the platform, writable | The data category, for instance 'metric_data', 'report_data', 'tracker_data' or 'other_data'. | |
row_ |
int32 |
itgen_mat_row_count | filters on the platform, writable | Number of database rows in this category. |