lib/logger: consistency renaming from vm_log_messages_count to vm_log_messages_total, since this is a counter

This commit is contained in:
Aliaksandr Valialkin 2019-12-02 00:47:12 +02:00
parent c567919f80
commit 542b9c2043

View file

@ -122,8 +122,8 @@ func logMessage(level, msg string, skipframes int) {
fmt.Fprint(os.Stderr, logMsg)
mu.Unlock()
// Increment vm_log_messages_count
counterName := fmt.Sprintf(`vm_log_messages_count{app_version=%q, level=%q, file=%q, line="%d"}`, buildinfo.Version, levelLowercase, file, line)
// Increment vm_log_messages_total
counterName := fmt.Sprintf(`vm_log_messages_total{app_version=%q, level=%q, file=%q, line="%d"}`, buildinfo.Version, levelLowercase, file, line)
metrics.GetOrCreateCounter(counterName).Inc()
switch level {