mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 04:52:10 +00:00
update AsynchronousMetricLog
This commit is contained in:
parent
e164c1d257
commit
4b27fbc4c3
@ -28,7 +28,7 @@ void AsynchronousMetricLogElement::appendToBlock(MutableColumns & columns) const
|
||||
{
|
||||
size_t column_idx = 0;
|
||||
|
||||
columns[column_idx++]->insert(hostname);
|
||||
columns[column_idx++]->insert(getFQDNOrHostName());
|
||||
columns[column_idx++]->insert(event_date);
|
||||
columns[column_idx++]->insert(event_time);
|
||||
columns[column_idx++]->insert(metric_name);
|
||||
@ -39,7 +39,6 @@ void AsynchronousMetricLog::addValues(const AsynchronousMetricValues & values)
|
||||
{
|
||||
AsynchronousMetricLogElement element;
|
||||
|
||||
element.hostname = getFQDNOrHostName();
|
||||
element.event_time = time(nullptr);
|
||||
element.event_date = DateLUT::instance().toDayNum(element.event_time);
|
||||
|
||||
|
@ -21,7 +21,6 @@ struct AsynchronousMetricLogElement
|
||||
{
|
||||
UInt16 event_date;
|
||||
time_t event_time;
|
||||
std::string hostname;
|
||||
std::string metric_name;
|
||||
double value;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user