Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromStore ¶
type PromStore interface { PromStoreInterface Name() string Run(stop <-chan struct{}) }
PromStore describe common interface for prometheus resource inherit from state store
func NewPromStoreManager ¶
func NewPromStoreManager(cacheTTL time.Duration, config *types.MetricsPrometheus) PromStore
NewPromStoreManager new a prometheus store manager
type PromStoreInterface ¶
type PromStoreInterface interface { GetPromDirectMetrics() (metricFamilies map[string]*dto.MetricFamily, err error) GetPromRangeMetrics(key string, start, end time.Time, count int) ([]float64, error) GetPromRecentMetrics(key string) (float64, error) }
PromStoreInterface describe prometheus special interface
Click to show internal directories.
Click to hide internal directories.