Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProvider ¶
func RegisterProvider(name string, constructor ProviderConstructor) error
RegisterProvider registers a metric provider constructor.
Types ¶
type Provider ¶
type Provider interface {
Query(ctx context.Context, query schema.MetricQuery) ([]schema.MetricSeries, error)
Describe(ctx context.Context, scope schema.QueryScope) ([]schema.MetricDescriptor, error)
}
Provider defines the capability surface for metric adapters.
type ProviderConstructor ¶
ProviderConstructor builds a metric provider from decrypted configuration.
func LookupProvider ¶
func LookupProvider(name string) (ProviderConstructor, bool)
LookupProvider returns a registered provider constructor by name.
Click to show internal directories.
Click to hide internal directories.