mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge 1988310c48
into 44b4bd38b9
This commit is contained in:
commit
07dba5d787
@ -9,12 +9,18 @@ namespace DB
|
|||||||
|
|
||||||
ColumnsDescription StorageSystemAsynchronousMetrics::getColumnsDescription()
|
ColumnsDescription StorageSystemAsynchronousMetrics::getColumnsDescription()
|
||||||
{
|
{
|
||||||
return ColumnsDescription
|
auto description = ColumnsDescription
|
||||||
{
|
{
|
||||||
{"metric", std::make_shared<DataTypeString>(), "Metric name."},
|
{"metric", std::make_shared<DataTypeString>(), "Metric name."},
|
||||||
{"value", std::make_shared<DataTypeFloat64>(), "Metric value."},
|
{"value", std::make_shared<DataTypeFloat64>(), "Metric value."},
|
||||||
{"description", std::make_shared<DataTypeString>(), "Metric description."},
|
{"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,
|
`metric` String,
|
||||||
`value` Float64,
|
`value` Float64,
|
||||||
`description` String
|
`description` String,
|
||||||
|
`name` String ALIAS metric
|
||||||
)
|
)
|
||||||
ENGINE = SystemAsynchronousMetrics
|
ENGINE = SystemAsynchronousMetrics
|
||||||
COMMENT 'Contains metrics that are calculated periodically in the background. For example, the amount of RAM in use.'
|
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