Skip to content

Commit e10899e

Browse files
committed
remove ':' from metric
1 parent 69cfc3e commit e10899e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ func executeCheck(event *corev2.Event) (int, error) {
8686
memory, _ := p.MemoryPercent()
8787
name, _ := p.Name()
8888
if cpu >= plugin.CPU || memory >= plugin.Memory {
89-
fmt.Printf("%s.process.cpu_percent.%s: %f %d\n", plugin.Scheme, strings.ReplaceAll(name, ".", "_"), Round(cpu, 0.1), time.Now().Unix())
90-
fmt.Printf("%s.process.memory_percent.%s: %f %d\n", plugin.Scheme, strings.ReplaceAll(name, ".", "_"), Round(float64(memory), 0.1), time.Now().Unix())
89+
fmt.Printf("%s.process.cpu_percent.%s %f %d\n", plugin.Scheme, strings.ReplaceAll(name, ".", "_"), Round(cpu, 0.1), time.Now().Unix())
90+
fmt.Printf("%s.process.memory_percent.%s %f %d\n", plugin.Scheme, strings.ReplaceAll(name, ".", "_"), Round(float64(memory), 0.1), time.Now().Unix())
9191
}
9292
}
9393
return sensu.CheckStateOK, nil

0 commit comments

Comments
 (0)