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
¶
- list.go
- metrics.go
- number.go
- scrape.go
- show.go
- statacquis.go
- statalert.go
- statappsecchallenge.go
- statappsecchallengeinfra.go
- statappsecengine.go
- statappsecrule.go
- statbouncer.go
- statbucket.go
- statdecision.go
- statlapi.go
- statlapibouncer.go
- statlapidecision.go
- statlapimachine.go
- statparser.go
- statstash.go
- statwhitelist.go
- store.go
- table.go
Click to show internal directories.
Click to hide internal directories.