You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This table can be configured with different schema types using the XML tag `<schema_type>`. The default schema type is `wide`, where each metric or profile event is stored as a separate column. This schema is the most performant and efficient for single-column reads.
59
+
60
+
The `transposed` schema stores data in a format similar to `system.asynchronous_metric_log`, where metrics and events are stored as rows. This schema is useful for low-resource setups because it reduces resource consumption during merges.
61
+
62
+
There is also a compatibility schema, `transposed_with_wide_view`, which stores actual data in a table with the transposed schema (`system.transposed_metric_log`) and creates a view on top of it using the wide schema. This view queries the transposed table, making it useful for migrating from the `wide` schema to the `transposed` schema.
63
+
57
64
**See also**
58
65
59
66
-[metric_log setting](../../operations/server-configuration-parameters/settings.md#metric_log) — Enabling and disabling the setting.
throwException(ErrorCodes::BAD_ARGUMENTS, "Unknown schema type {} for metric_log table, only 'wide', 'transposed' and 'transposed_with_wide_view' are allowed", schema);
Copy file name to clipboardExpand all lines: src/Interpreters/SystemLog.h
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@
14
14
M(CrashLog, crash_log, "Contains information about stack traces for fatal errors. The table does not exist in the database by default, it is created only when fatal errors occur.") \
15
15
M(TextLog, text_log, "Contains logging entries which are normally written to a log file or to stdout.") \
16
16
M(MetricLog, metric_log, "Contains history of metrics values from tables system.metrics and system.events, periodically flushed to disk.") \
17
+
M(TransposedMetricLog, transposed_metric_log,"Contains history of metrics values from tables system.metrics and system.events. Periodically flushed to disk. Transposed form of system.metric_log.") \
17
18
M(LatencyLog, latency_log, "Contains history of all latency buckets, periodically flushed to disk.") \
18
19
M(ErrorLog, error_log, "Contains history of error values from table system.errors, periodically flushed to disk.") \
19
20
M(FilesystemCacheLog, filesystem_cache_log, "Contains a history of all events occurred with filesystem cache for objects on a remote filesystem.") \
0 commit comments