asynchronous_metric_log
在 ClickHouse Cloud 中查询
此系统表中的数据本地保存在 ClickHouse Cloud 的每个节点上。因此,要获得所有数据的完整视图,需要使用 clusterAllReplicas
函数。请参阅此处了解更多详情。
包含 system.asynchronous_metrics 的历史值,这些值按时间间隔保存一次(默认情况下为一秒)。默认启用。
列
hostname
(LowCardinality(String)) — 服务器的主机名。event_date
(Date) — 事件日期。event_time
(DateTime) — 事件时间。metric
(String) — 指标名称。value
(Float64) — 指标值。
示例
SELECT * FROM system.asynchronous_metric_log LIMIT 3 \G
Row 1:
──────
hostname: clickhouse.eu-central1.internal
event_date: 2023-11-14
event_time: 2023-11-14 14:39:07
metric: AsynchronousHeavyMetricsCalculationTimeSpent
value: 0.001
Row 2:
──────
hostname: clickhouse.eu-central1.internal
event_date: 2023-11-14
event_time: 2023-11-14 14:39:08
metric: AsynchronousHeavyMetricsCalculationTimeSpent
value: 0
Row 3:
──────
hostname: clickhouse.eu-central1.internal
event_date: 2023-11-14
event_time: 2023-11-14 14:39:09
metric: AsynchronousHeavyMetricsCalculationTimeSpent
value: 0
另请参阅
- asynchronous_metric_log 设置 — 启用和禁用该设置。
- system.asynchronous_metrics — 包含在后台定期计算的指标。
- system.metric_log — 包含来自表 system.metrics 和 system.events 的指标值的历史记录,定期刷新到磁盘。