mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
chore: remove mName
Signed-off-by: Manik Rana <manikrana54@gmail.com>
This commit is contained in:
parent
0d7ac7caf5
commit
e6f6165c9b
|
@ -77,7 +77,6 @@ type OpenMetricsParser struct {
|
||||||
series []byte
|
series []byte
|
||||||
text []byte
|
text []byte
|
||||||
mtype model.MetricType
|
mtype model.MetricType
|
||||||
mName string
|
|
||||||
val float64
|
val float64
|
||||||
ts int64
|
ts int64
|
||||||
hasTS bool
|
hasTS bool
|
||||||
|
@ -304,7 +303,6 @@ func deepCopy(p *OpenMetricsParser) OpenMetricsParser {
|
||||||
newParser := OpenMetricsParser{
|
newParser := OpenMetricsParser{
|
||||||
l: newLexer,
|
l: newLexer,
|
||||||
mtype: p.mtype,
|
mtype: p.mtype,
|
||||||
mName: p.mName,
|
|
||||||
val: p.val,
|
val: p.val,
|
||||||
skipCT: false,
|
skipCT: false,
|
||||||
}
|
}
|
||||||
|
@ -355,7 +353,6 @@ func (p *OpenMetricsParser) Next() (Entry, error) {
|
||||||
mEnd--
|
mEnd--
|
||||||
}
|
}
|
||||||
p.offsets = append(p.offsets, mStart, mEnd)
|
p.offsets = append(p.offsets, mStart, mEnd)
|
||||||
p.mName = string(p.l.b[mStart:mEnd])
|
|
||||||
default:
|
default:
|
||||||
return EntryInvalid, p.parseError("expected metric name after "+t.String(), t2)
|
return EntryInvalid, p.parseError("expected metric name after "+t.String(), t2)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue