vzmetrics

package
v0.0.0-...-73c8340 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePrometheusTextToWriteReq

func ParsePrometheusTextToWriteReq(text string, clusterID string, podName string) (*prompb.WriteRequest, error)

ParsePrometheusTextToWriteReq parses prometheus metrics in prometheus' text-based exposition format, into a prometheus WriteRequest protobuf.

Types

type Scraper

type Scraper interface {
	// Run starts the metrics scraper.
	Run()
	// Stop the metrics scraper.
	Stop()
	// MetricsChannel gets the output channel for metrics scraped by the scraper.
	MetricsChannel() <-chan *messagespb.MetricsMessage
}

Scraper is the interface for the metrics scraper that periodically scrapes metrics from the /metrics endpoint on each of the services provided to it.

func NewScraper

func NewScraper(namespace string, period time.Duration) Scraper

NewScraper returns a new metrics scraper with the given scraping period.

Jump to

Keyboard shortcuts

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