mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Merge 1988310c48
into 44b4bd38b9
This commit is contained in:
commit
07dba5d787
@ -9,12 +9,18 @@ namespace DB
|
||||
|
||||
ColumnsDescription StorageSystemAsynchronousMetrics::getColumnsDescription()
|
||||
{
|
||||
return ColumnsDescription
|
||||
auto description = ColumnsDescription
|
||||
{
|
||||
{"metric", std::make_shared<DataTypeString>(), "Metric name."},
|
||||
{"value", std::make_shared<DataTypeFloat64>(), "Metric value."},
|
||||
{"description", std::make_shared<DataTypeString>(), "Metric description."},
|
||||
};
|
||||
|
||||
description.setAliases({
|
||||
{"name", std::make_shared<DataTypeString>(), "metric"}
|
||||
});
|
||||
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
|
@ -22,7 +22,8 @@ CREATE TABLE system.asynchronous_metrics
|
||||
(
|
||||
`metric` String,
|
||||
`value` Float64,
|
||||
`description` String
|
||||
`description` String,
|
||||
`name` String ALIAS metric
|
||||
)
|
||||
ENGINE = SystemAsynchronousMetrics
|
||||
COMMENT 'Contains metrics that are calculated periodically in the background. For example, the amount of RAM in use.'
|
||||
|
Loading…
Reference in New Issue
Block a user