diff --git a/system/jlib/jlog.hpp b/system/jlib/jlog.hpp index 185f7d128a9..67c3fda1dc2 100644 --- a/system/jlib/jlog.hpp +++ b/system/jlib/jlog.hpp @@ -835,7 +835,7 @@ constexpr LogMsgCategory MCuserInfo(MSGAUD_user, MSGCLS_information, InfoMsgThre constexpr LogMsgCategory MCdebugInfo(MSGAUD_programmer, MSGCLS_information, DebugMsgThreshold); constexpr LogMsgCategory MCauditInfo(MSGAUD_audit, MSGCLS_information, AudMsgThreshold); constexpr LogMsgCategory MCoperatorInfo(MSGAUD_operator, MSGCLS_information, InfoMsgThreshold); -constexpr LogMsgCategory MCoperatorMetric(MSGAUD_operator, MSGCLS_metric, ErrMsgThreshold); +constexpr LogMsgCategory MCmonitorMetric(MSGAUD_monitor, MSGCLS_metric, ErrMsgThreshold); constexpr LogMsgCategory MCmonitorEvent(MSGAUD_monitor, MSGCLS_event, ProgressMsgThreshold); /* diff --git a/system/metrics/sinks/log/logSink.cpp b/system/metrics/sinks/log/logSink.cpp index cb8eb1091c1..1b00b5407e7 100644 --- a/system/metrics/sinks/log/logSink.cpp +++ b/system/metrics/sinks/log/logSink.cpp @@ -60,7 +60,7 @@ void LogMetricSink::writeLogEntry(const std::shared_ptr &pMetric) { name.append(".").append(unitsStr); } - LOG(MCoperatorMetric, "name=%s,value=%" I64F "d", name.c_str(), pMetric->queryValue()); + LOG(MCmonitorMetric, "name=%s,value=%" I64F "d", name.c_str(), pMetric->queryValue()); } else { @@ -72,18 +72,18 @@ void LogMetricSink::writeLogEntry(const std::shared_ptr &pMetric) for (size_t i=0; i < countBucketValues - 1; ++i) { cumulative += values[i]; - LOG(MCoperatorMetric, "name=%s, bucket le %" I64F "d=%" I64F "d", name.c_str(), limits[i], cumulative); + LOG(MCmonitorMetric, "name=%s, bucket le %" I64F "d=%" I64F "d", name.c_str(), limits[i], cumulative); } // The inf bucket count is the last element in the array of values returned. // Add it to the cumulative count and print the value cumulative += values[countBucketValues - 1]; - LOG(MCoperatorMetric, "name=%s, bucket inf=%" I64F "d", name.c_str(), cumulative); + LOG(MCmonitorMetric, "name=%s, bucket inf=%" I64F "d", name.c_str(), cumulative); // sum - total of all observations - LOG(MCoperatorMetric, "name=%s, sum=%" I64F "d", name.c_str(), pMetric->queryValue()); + LOG(MCmonitorMetric, "name=%s, sum=%" I64F "d", name.c_str(), pMetric->queryValue()); // count - total of all bucket counts (same as inf) - LOG(MCoperatorMetric, "name=%s, count=%" I64F "d", name.c_str(), cumulative); + LOG(MCmonitorMetric, "name=%s, count=%" I64F "d", name.c_str(), cumulative); } }