Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabelStats ¶ added in v0.2.0
func (LabelStats) String ¶ added in v0.2.0
func (l LabelStats) String() string
type LabelStatsSlice ¶ added in v0.2.0
type LabelStatsSlice []LabelStats
func (LabelStatsSlice) String ¶ added in v0.2.0
func (l LabelStatsSlice) String() string
type PromScraper ¶
type PromScraper struct {
// contains filtered or unexported fields
}
func NewPromScraper ¶
func NewPromScraper(scrapeURL string, logger log.Logger, opts ...ScraperOption) *PromScraper
func (*PromScraper) LastScrapeContentType ¶
func (ps *PromScraper) LastScrapeContentType() string
func (*PromScraper) Scrape ¶
func (ps *PromScraper) Scrape() (*Result, error)
type ScraperOption ¶
type ScraperOption func(*scrapeOpts)
func WithMaxBodySize ¶
func WithMaxBodySize(maxBodySize int64) ScraperOption
func WithTimeout ¶
func WithTimeout(timeout time.Duration) ScraperOption
type SeriesInfo ¶
type SeriesSet ¶
func (SeriesSet) Cardinality ¶
func (SeriesSet) LabelNames ¶
func (SeriesSet) LabelStats ¶ added in v0.2.0
func (s SeriesSet) LabelStats() LabelStatsSlice
func (SeriesSet) MetricTypeString ¶
Click to show internal directories.
Click to hide internal directories.