From 4b27fbc4c3895d36ecb8e4bd77a4e2676dff1d7c Mon Sep 17 00:00:00 2001 From: Bharat Nallan Chakravarthy Date: Tue, 14 Nov 2023 18:36:41 -0800 Subject: [PATCH] update AsynchronousMetricLog --- src/Interpreters/AsynchronousMetricLog.cpp | 3 +-- src/Interpreters/AsynchronousMetricLog.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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;