From ef4f3c669d71939b27bbdd0598d548036a32e059 Mon Sep 17 00:00:00 2001 From: kun yu Date: Sat, 27 Jul 2019 16:48:04 +0800 Subject: [PATCH] add CPU metrics Former-commit-id: 35acd43013808abd33bf055c1ba68791b055f12a --- cpp/src/db/DBImpl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpp/src/db/DBImpl.cpp b/cpp/src/db/DBImpl.cpp index 9a27f09b..272c4ff5 100644 --- a/cpp/src/db/DBImpl.cpp +++ b/cpp/src/db/DBImpl.cpp @@ -312,6 +312,9 @@ void DBImpl::StartMetricTask() { server::Metrics::GetInstance().GPUMemoryUsageGaugeSet(); server::Metrics::GetInstance().OctetsSet(); + server::Metrics::GetInstance().CPUCoreUsagePercentSet(); + + ENGINE_LOG_TRACE << "Metric task finished"; } -- GitLab