mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 22:49:40 -08:00
commit
7d0850571d
|
@ -31,7 +31,9 @@ type Storage interface {
|
||||||
// fingerprint need to be submitted in chronological order, from oldest
|
// fingerprint need to be submitted in chronological order, from oldest
|
||||||
// to newest. When Append has returned, the appended sample might not be
|
// to newest. When Append has returned, the appended sample might not be
|
||||||
// queryable immediately. (Use WaitForIndexing to wait for complete
|
// queryable immediately. (Use WaitForIndexing to wait for complete
|
||||||
// processing.)
|
// processing.) The implementation might remove labels with empty value
|
||||||
|
// from the provided Sample as those labels are considered equivalent to
|
||||||
|
// a label not present at all.
|
||||||
Append(*clientmodel.Sample)
|
Append(*clientmodel.Sample)
|
||||||
// NewPreloader returns a new Preloader which allows preloading and pinning
|
// NewPreloader returns a new Preloader which allows preloading and pinning
|
||||||
// series data into memory for use within a query.
|
// series data into memory for use within a query.
|
||||||
|
@ -39,9 +41,10 @@ type Storage interface {
|
||||||
// MetricsForLabelMatchers returns the metrics from storage that satisfy the given
|
// MetricsForLabelMatchers returns the metrics from storage that satisfy the given
|
||||||
// label matchers. At least one label matcher must be specified that does not
|
// label matchers. At least one label matcher must be specified that does not
|
||||||
// match the empty string.
|
// match the empty string.
|
||||||
MetricsForLabelMatchers(matchers ...*metric.LabelMatcher) map[clientmodel.Fingerprint]clientmodel.COWMetric
|
MetricsForLabelMatchers(...*metric.LabelMatcher) map[clientmodel.Fingerprint]clientmodel.COWMetric
|
||||||
// LastSamplePairForFingerprint returns the last sample pair for the provided fingerprint.
|
// LastSamplePairForFingerprint returns the last sample pair for the
|
||||||
// If the respective time series is evicted, nil is returned.
|
// provided fingerprint. If the respective time series does not exist or
|
||||||
|
// has an evicted head chunk, nil is returned.
|
||||||
LastSamplePairForFingerprint(clientmodel.Fingerprint) *metric.SamplePair
|
LastSamplePairForFingerprint(clientmodel.Fingerprint) *metric.SamplePair
|
||||||
// Get all of the label values that are associated with a given label name.
|
// Get all of the label values that are associated with a given label name.
|
||||||
LabelValuesForLabelName(clientmodel.LabelName) clientmodel.LabelValues
|
LabelValuesForLabelName(clientmodel.LabelName) clientmodel.LabelValues
|
||||||
|
|
Loading…
Reference in a new issue