code refactor
This commit is contained in:
parent
5b0e24cd40
commit
ee07969c8a
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue