fix target mem util

This commit is contained in:
Ulric Qin 2022-08-09 17:19:27 +08:00
parent a248e054fa
commit 49965fd5d5
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import (
)
var promqlLoadPerCore = `max(max_over_time(system_load_norm_1{ident=~"(%s)"}[%dm])) by (ident)`
var promqlMemUtil = `max(max_over_time(mem_available_percent{ident=~"(%s)"}[%dm])) by (ident)`
var promqlMemUtil = `100-max(max_over_time(mem_available_percent{ident=~"(%s)"}[%dm])) by (ident)`
var promqlTargetUp = `max(max_over_time(target_up{ident=~"(%s)"}[%dm])) by (ident)`
func targetGets(c *gin.Context) {