mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-12 16:44:05 -08:00
16 lines
470 B
Go
16 lines
470 B
Go
package main
|
|
|
|
type MetricPersistence interface {
|
|
Close() error
|
|
AppendSample(sample *Sample) error
|
|
|
|
GetLabelNames() ([]string, error)
|
|
GetLabelPairs() ([]LabelPairs, error)
|
|
GetMetrics() ([]LabelPairs, error)
|
|
|
|
GetMetricFingerprintsForLabelPairs(labelSets []*LabelPairs) ([]*Fingerprint, error)
|
|
RecordLabelNameFingerprint(sample *Sample) error
|
|
RecordFingerprintWatermark(sample *Sample) error
|
|
GetFingerprintLabelPairs(fingerprint Fingerprint) (LabelPairs, error)
|
|
}
|