mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/logger: consistency renaming from vm_log_messages_count
to vm_log_messages_total
, since this is a counter
This commit is contained in:
parent
c567919f80
commit
542b9c2043
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue