prometheus

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: BSD-2-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger *zap.Logger, config types.BackendV2, tldCacheDisabled bool) (types.BackendServer, merry.Error)

func NewWithEverythingInitialized added in v0.14.2

func NewWithEverythingInitialized(logger *zap.Logger, config types.BackendV2, tldCacheDisabled bool, limiter limiter.ServerLimiter, step, maxPointsPerQuery int64, delay StartDelay, httpQuery *helper.HttpQuery, httpClient *http.Client) (types.BackendServer, merry.Error)

func NewWithLimiter

func NewWithLimiter(logger *zap.Logger, config types.BackendV2, tldCacheDisabled bool, limiter limiter.ServerLimiter) (types.BackendServer, merry.Error)

Types

type PrometheusGroup

type PrometheusGroup struct {
	// contains filtered or unexported fields
}

RoundRobin is used to connect to backends inside clientGroups, implements BackendServer interface

func (PrometheusGroup) Backends

func (c PrometheusGroup) Backends() []string

func (*PrometheusGroup) Children

func (c *PrometheusGroup) Children() []types.BackendServer

func (*PrometheusGroup) Fetch

func (*PrometheusGroup) Find

func (*PrometheusGroup) Info

func (*PrometheusGroup) List

func (PrometheusGroup) MaxMetricsPerRequest

func (c PrometheusGroup) MaxMetricsPerRequest() int

func (PrometheusGroup) Name

func (c PrometheusGroup) Name() string

func (*PrometheusGroup) ProbeTLDs

func (c *PrometheusGroup) ProbeTLDs(ctx context.Context) ([]string, merry.Error)

func (*PrometheusGroup) Stats

func (*PrometheusGroup) TagNames

func (c *PrometheusGroup) TagNames(ctx context.Context, query string, limit int64) ([]string, merry.Error)

func (*PrometheusGroup) TagValues

func (c *PrometheusGroup) TagValues(ctx context.Context, query string, limit int64) ([]string, merry.Error)

type StartDelay added in v0.14.2

type StartDelay struct {
	IsSet      bool
	IsDuration bool
	D          time.Duration
	T          int64
	S          string
}

func (*StartDelay) String added in v0.14.2

func (s *StartDelay) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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