escape TargetMetrics

This commit is contained in:
Ulric Qin 2022-08-09 20:07:17 +08:00
parent 9b3a9f29d9
commit f18ed76593
1 changed files with 3 additions and 3 deletions

View File

@ -177,6 +177,6 @@ BasicAuthPass = "ibex"
Timeout = 3000
[TargetMetrics]
TargetUp = "max(max_over_time(target_up{ident=~"(%s)"}[%dm])) by (ident)"
LoadPerCore = "max(max_over_time(system_load_norm_1{ident=~"(%s)"}[%dm])) by (ident)"
MemUtil = "100-max(max_over_time(mem_available_percent{ident=~"(%s)"}[%dm])) by (ident)"
TargetUp = '''max(max_over_time(target_up{ident=~"(%s)"}[%dm])) by (ident)'''
LoadPerCore = '''max(max_over_time(system_load_norm_1{ident=~"(%s)"}[%dm])) by (ident)'''
MemUtil = '''100-max(max_over_time(mem_available_percent{ident=~"(%s)"}[%dm])) by (ident)'''