mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Remove NewPossibleNonCounterInfo until it can be made more efficient
This commit is contained in:
parent
97933fb7d3
commit
7756556eb6
|
@ -88,14 +88,6 @@ func extrapolatedRate(vals []parser.Value, args parser.Expressions, enh *EvalNod
|
||||||
return enh.Out, annos.Add(annotations.NewMixedFloatsHistogramsWarning(metricName, args[0].PositionRange()))
|
return enh.Out, annos.Add(annotations.NewMixedFloatsHistogramsWarning(metricName, args[0].PositionRange()))
|
||||||
}
|
}
|
||||||
|
|
||||||
if isCounter && metricName != "" && len(samples.Floats) > 0 &&
|
|
||||||
!strings.HasSuffix(metricName, "_total") &&
|
|
||||||
!strings.HasSuffix(metricName, "_sum") &&
|
|
||||||
!strings.HasSuffix(metricName, "_count") &&
|
|
||||||
!strings.HasSuffix(metricName, "_bucket") {
|
|
||||||
annos.Add(annotations.NewPossibleNonCounterInfo(metricName, args[0].PositionRange()))
|
|
||||||
}
|
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
case len(samples.Histograms) > 1:
|
case len(samples.Histograms) > 1:
|
||||||
numSamplesMinusOne = len(samples.Histograms) - 1
|
numSamplesMinusOne = len(samples.Histograms) - 1
|
||||||
|
|
Loading…
Reference in a new issue