code refactor

This commit is contained in:
Ulric Qin 2022-09-23 10:52:52 +08:00
parent 5b0e24cd40
commit ee07969c8a
1 changed files with 3 additions and 0 deletions

View File

@ -184,6 +184,9 @@ func pushMetrics() {
// 把actives传给TargetCache看看除了active的部分还有别的target么有的话返回设置target_up = 0
deads := memsto.TargetCache.GetDeads(actives)
for ident, dead := range deads {
if ident == "" {
continue
}
// build metrics
pt := &prompb.TimeSeries{}
pt.Samples = append(pt.Samples, prompb.Sample{