Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricsScraper ¶
type MetricsScraper struct {
// contains filtered or unexported fields
}
MetricsScraper periodically scrapes Prometheus metrics from kamal-proxy
func NewMetricsScraper ¶
func NewMetricsScraper(settings ScraperSettings) *MetricsScraper
func (*MetricsScraper) Fetch ¶
func (s *MetricsScraper) Fetch(service string, n int) []Sample
Fetch returns the last n samples for a service, ordered from newest to oldest. If fewer than n samples exist, only the available samples are returned.
func (*MetricsScraper) LastError ¶
func (s *MetricsScraper) LastError() error
func (*MetricsScraper) Scrape ¶
func (s *MetricsScraper) Scrape(ctx context.Context)
type ScraperSettings ¶
ScraperSettings configures the metrics scraper
Click to show internal directories.
Click to hide internal directories.