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.
Click to show internal directories.
Click to hide internal directories.