mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-26 21:22:33 -08:00
Doc comment fixes
This commit is contained in:
parent
20cba1ed8f
commit
07a294ac15
|
@ -281,7 +281,7 @@ func NewMemorySeriesStorage(o *MemorySeriesStorageOptions) Storage {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize metric vectors.
|
// Initialize metric vectors.
|
||||||
// TODO(beorn7): Rework once we have a utility function for it in golang_client.
|
// TODO(beorn7): Rework once we have a utility function for it in client_golang.
|
||||||
s.discardedSamplesCount.WithLabelValues(outOfOrderTimestamp)
|
s.discardedSamplesCount.WithLabelValues(outOfOrderTimestamp)
|
||||||
s.discardedSamplesCount.WithLabelValues(duplicateSample)
|
s.discardedSamplesCount.WithLabelValues(duplicateSample)
|
||||||
s.maintainSeriesDuration.WithLabelValues(maintainInMemory)
|
s.maintainSeriesDuration.WithLabelValues(maintainInMemory)
|
||||||
|
@ -605,8 +605,8 @@ var (
|
||||||
ErrOutOfOrderSample = fmt.Errorf("sample timestamp out of order")
|
ErrOutOfOrderSample = fmt.Errorf("sample timestamp out of order")
|
||||||
// ErrDuplicateSampleForTimestamp is returned if a sample has the same
|
// ErrDuplicateSampleForTimestamp is returned if a sample has the same
|
||||||
// timestamp as the latest sample in the series it is appended to but a
|
// timestamp as the latest sample in the series it is appended to but a
|
||||||
// different value. (Appending an identical sample is a no-op does not
|
// different value. (Appending an identical sample is a no-op and does
|
||||||
// cause an error.)
|
// not cause an error.)
|
||||||
ErrDuplicateSampleForTimestamp = fmt.Errorf("sample with repeated timestamp but different value")
|
ErrDuplicateSampleForTimestamp = fmt.Errorf("sample with repeated timestamp but different value")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue