fix/TD-31686-remove-wrong-log-error

This commit is contained in:
dmchen 2024-08-29 01:09:57 +00:00
parent 68d8700846
commit 5e9909cd64
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,8 @@ int32_t monInit(const SMonCfg *pCfg) {
} }
void monInitVnode() { void monInitVnode() {
if (tsEnableMonitor && tsMonitorFqdn[0] != 0 && tsMonitorPort != 0 && tsInsertCounter == NULL) { if (!tsEnableMonitor || tsMonitorFqdn[0] == 0 || tsMonitorPort == 0) return;
if (tsInsertCounter == NULL) {
taos_counter_t *counter = NULL; taos_counter_t *counter = NULL;
int32_t label_count = 7; int32_t label_count = 7;
const char *sample_labels[] = {VNODE_METRIC_TAG_NAME_SQL_TYPE, VNODE_METRIC_TAG_NAME_CLUSTER_ID, const char *sample_labels[] = {VNODE_METRIC_TAG_NAME_SQL_TYPE, VNODE_METRIC_TAG_NAME_CLUSTER_ID,