prometheus

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Family

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

func (Family) AllLabels

func (f Family) AllLabels() []labels.Labels

AllLabels returns the set of labels present for this family

func (Family) For

func (f Family) For(ls labels.Labels) float64

type Monitor

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

func NewMonitor

func NewMonitor(cfg config.PromReady) *Monitor

func (*Monitor) GetConfig

func (m *Monitor) GetConfig(ctx context.Context) (promconfig.Config, error)

func (*Monitor) GetGlobalConfig added in v0.24.0

func (m *Monitor) GetGlobalConfig() promconfig.GlobalConfig

func (*Monitor) GetMetrics

func (m *Monitor) GetMetrics(ctx context.Context) (_ Result, retErr error)

func (*Monitor) GetScrapeConfig

func (m *Monitor) GetScrapeConfig() []*promconfig.ScrapeConfig

func (*Monitor) WaitForReady

func (m *Monitor) WaitForReady(inCtx context.Context, inCtxCancel context.CancelFunc) error

type Result

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

func (Result) Counter

func (r Result) Counter(name string) Family

func (Result) Gauge

func (r Result) Gauge(name string) Family

func (Result) Summary

func (r Result) Summary(name string) SummaryFamily

type Summary

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

func (Summary) Count

func (s Summary) Count() uint64

type SummaryFamily

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

func (SummaryFamily) AllLabels

func (f SummaryFamily) AllLabels() []labels.Labels

AllLabels returns the set of labels present for this family of Summaries.

func (SummaryFamily) For

func (f SummaryFamily) For(ls labels.Labels) Summary

Jump to

Keyboard shortcuts

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