Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProbeSuccessMetricName = "probe_success" CheckInfoMetricName = "sm_check_info" CheckInfoSource = "synthetic-monitoring-agent" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Incrementer ¶ added in v0.17.1
type Incrementer interface {
Inc()
}
type IncrementerVec ¶ added in v0.17.1
type IncrementerVec interface {
WithLabelValues(...string) Incrementer
}
func NewIncrementerFromCounterVec ¶ added in v0.17.1
func NewIncrementerFromCounterVec(c *prometheus.CounterVec) IncrementerVec
type LabelsLimiter ¶ added in v0.20.1
type Metrics ¶ added in v0.23.0
type Metrics interface { AddScrape() AddCheckError() AddCollectorError() }
func NewMetrics ¶ added in v0.23.0
func NewMetrics(scrapeCounter Incrementer, errorCounter IncrementerVec) Metrics
type Scraper ¶
type Scraper struct {
// contains filtered or unexported fields
}
func NewWithOpts ¶ added in v0.2.0
func (Scraper) ConfigVersion ¶
func (Scraper) LastModified ¶ added in v0.10.0
type ScraperOpts ¶ added in v0.2.0
type TimeSeries ¶
type TimeSeries = []prompb.TimeSeries
Click to show internal directories.
Click to hide internal directories.