metrics

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RemoteWriteTimeout  = 30 * time.Second
	RemoteFlushDeadline = time.Minute
)

Variables

View Source
var ErrNotReady = errors.New("Scrape manager not ready")

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	Config    ExporterConfig
	Collector prometheus.Collector
	Stop      func()
}

func (*Exporter) Collect

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

func (*Exporter) Describe

func (e *Exporter) Describe(ch chan<- *prometheus.Desc)

type ExporterConfig

type ExporterConfig model.ApplicationInstrumentation

func (ExporterConfig) Address

func (c ExporterConfig) Address() string

func (ExporterConfig) Equal

func (c ExporterConfig) Equal(other ExporterConfig) bool

func (ExporterConfig) Labels

func (c ExporterConfig) Labels() prometheus.Labels

func (ExporterConfig) String

func (c ExporterConfig) String() string

type Logger

type Logger struct{}

func (Logger) Log

func (l Logger) Log(v ...interface{}) error

type Metrics

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

func NewMetrics

func NewMetrics() (*Metrics, error)

func (*Metrics) HttpHandler

func (ms *Metrics) HttpHandler() http.Handler

func (*Metrics) ListenConfigUpdates

func (ms *Metrics) ListenConfigUpdates(updates <-chan model.Config)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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