From a59fd502cf3830175e95e6e7addcb07f954c36b9 Mon Sep 17 00:00:00 2001 From: dmchen Date: Mon, 19 Feb 2024 04:21:53 +0000 Subject: [PATCH] vnodes_num --- source/libs/monitor/src/monFramework.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/monitor/src/monFramework.c b/source/libs/monitor/src/monFramework.c index bf651f1dee..0ce6923326 100644 --- a/source/libs/monitor/src/monFramework.c +++ b/source/libs/monitor/src/monFramework.c @@ -441,10 +441,10 @@ void monGenDnodeInfoTable(SMonInfo *pMonitor) { taos_gauge_set(*metric, io_write_disk_rate, sample_labels); metric = taosHashGet(tsMonitor.metrics, ERRORS, strlen(ERRORS)); - taos_gauge_set(*metric, io_read_disk_rate, sample_labels); + taos_gauge_set(*metric, pStat->errors, sample_labels); metric = taosHashGet(tsMonitor.metrics, VNODES_NUM, strlen(VNODES_NUM)); - taos_gauge_set(*metric, pStat->errors, sample_labels); + taos_gauge_set(*metric, pStat->totalVnodes, sample_labels); metric = taosHashGet(tsMonitor.metrics, MASTERS, strlen(MASTERS)); taos_gauge_set(*metric, pStat->masterNum, sample_labels);