diff --git a/src/Interpreters/AsynchronousMetricLog.cpp b/src/Interpreters/AsynchronousMetricLog.cpp index 45d54df965e..a750388d38f 100644 --- a/src/Interpreters/AsynchronousMetricLog.cpp +++ b/src/Interpreters/AsynchronousMetricLog.cpp @@ -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); diff --git a/src/Interpreters/AsynchronousMetricLog.h b/src/Interpreters/AsynchronousMetricLog.h index 9bb24f4369d..93bbdcdff2c 100644 --- a/src/Interpreters/AsynchronousMetricLog.h +++ b/src/Interpreters/AsynchronousMetricLog.h @@ -21,7 +21,6 @@ struct AsynchronousMetricLogElement { UInt16 event_date; time_t event_time; - std::string hostname; std::string metric_name; double value;