promstore

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL