Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend interface { // GetType returns backend type, for example Prometheus. GetType() string // GetAddress returns backend address. GetAddress() string // QueryInstant performs instant query and returns results in model.Vector type. QueryInstant(ctx context.Context, query string, ts time.Time) (model.Vector, error) }
Backend is used to interface with a metrics backend
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager maintains a set of Backends.
type Registry ¶
func (*Registry) Delete ¶
Delete deletes the Backend with the given name from the Registry, or noops if the Backend doesn't exist. It only deletes it from the Registry; it does not clean up the underlying type.
func (*Registry) Iter ¶
func (r *Registry) Iter() <-chan RegistryItem
Iter iterates over the items in a Registry Each item is sent over a channel, so that we can iterate over the Registry using the builtin range keyword
type RegistryItem ¶
Click to show internal directories.
Click to hide internal directories.