mirror of
https://github.com/eolinker/apinto
synced 2025-10-25 09:40:25 +08:00
指标设置默认值
This commit is contained in:
@@ -38,7 +38,11 @@ func ReadRequest(ctx http_context.IHttpContext) []IPoint {
|
||||
}
|
||||
|
||||
for key, label := range labels {
|
||||
tags[key] = ctx.GetLabel(label)
|
||||
value := ctx.GetLabel(label)
|
||||
if value == "" {
|
||||
value = "-"
|
||||
}
|
||||
tags[key] = value
|
||||
}
|
||||
for _, metrics := range requestMetrics {
|
||||
f, has := request[metrics]
|
||||
|
||||
Reference in New Issue
Block a user