mirror of
https://github.com/prometheus/prometheus
synced 2026-04-20 22:41:05 +08:00
Merge pull request #17427 from roidelapluie/roidelapluie/ffapi
API: Add a /api/v1/features endpoint
This commit is contained in:
@@ -24,6 +24,9 @@ import (
|
||||
"github.com/cespare/xxhash/v2"
|
||||
)
|
||||
|
||||
// ImplementationName is the name of the labels implementation.
|
||||
const ImplementationName = "dedupelabels"
|
||||
|
||||
// Labels is implemented by a SymbolTable and string holding name/value
|
||||
// pairs encoded as indexes into the table in varint encoding.
|
||||
// Names are in alphabetical order.
|
||||
|
||||
@@ -25,6 +25,9 @@ import (
|
||||
"github.com/cespare/xxhash/v2"
|
||||
)
|
||||
|
||||
// ImplementationName is the name of the labels implementation.
|
||||
const ImplementationName = "slicelabels"
|
||||
|
||||
// Labels is a sorted set of labels. Order has to be guaranteed upon
|
||||
// instantiation.
|
||||
type Labels []Label
|
||||
|
||||
@@ -23,6 +23,9 @@ import (
|
||||
"github.com/cespare/xxhash/v2"
|
||||
)
|
||||
|
||||
// ImplementationName is the name of the labels implementation.
|
||||
const ImplementationName = "stringlabels"
|
||||
|
||||
// Labels is implemented by a single flat string holding name/value pairs.
|
||||
// Each name and value is preceded by its length, encoded as a single byte
|
||||
// for size 0-254, or the following 3 bytes little-endian, if the first byte is 255.
|
||||
|
||||
Reference in New Issue
Block a user