mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
fix: return nil when mtype doesn't match
Signed-off-by: Manik Rana <manikrana54@gmail.com>
This commit is contained in:
parent
50615b4b80
commit
4102f415d3
|
@ -270,14 +270,10 @@ loop:
|
|||
}
|
||||
}
|
||||
default:
|
||||
break
|
||||
// if mtype is not counter, summary or histogram, it won't have a valid _created line
|
||||
return nil
|
||||
}
|
||||
|
||||
// TODO: for histograms
|
||||
// if t, _ := newParser.Next(); t != EntrySeries {
|
||||
// return nil
|
||||
// }
|
||||
|
||||
// gauge_created is a metric
|
||||
ct := int64(newParser.val)
|
||||
return &ct
|
||||
|
|
Loading…
Reference in a new issue