Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingConfig = errors.New("prometheus section missing, can't show metrics") ErrMetricsDisabled = errors.New("prometheus is not enabled, can't show metrics") )
View Source
var ErrNilTable = errors.New("nil table")
ErrNilTable means a nil pointer was passed instead of a table instance. This is a programming error.
Functions ¶
func NewMetricStore ¶
func NewMetricStore() metricStore
Types ¶
type MetricPoint ¶ added in v1.7.4
func ScrapeMetrics ¶ added in v1.7.4
func ScrapeMetrics(ctx context.Context, url string) ([]MetricPoint, error)
ScrapeMetrics retrieves and parses Prometheus metrics from the given URL using the provided context for cancellation and timeout.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.