docs/en/operations/system-tables/dimensional_metrics.md
import SystemTableCloud from '@site/docs/_snippets/_system_table_cloud.md';
This table contains dimensional metrics that can be calculated instantly and exported in the Prometheus format. It is always up to date.
Columns:
metric (String) — Metric name.value (Int64) — Metric value.description (String) — Metric description.labels (Map(String, String)) — Metric labels.name (String) — Alias for metric.Example
You can use a query like this to export all the dimensional metrics in the Prometheus format.
SELECT
metric AS name,
toFloat64(value) AS value,
description AS help,
labels,
'gauge' AS type
FROM system.dimensional_metrics
FORMAT Prometheus
Number of all failed merges since startup.
Indicates startup scripts failures by error type. Set to 1 when a startup script fails, labelled with the error name.
Number of merge tree data parts, labelled by part state, part type, and whether it is a projection part.
See Also
system.metrics and system.events.