MCPcopy Index your code
hub / github.com/prometheus/prometheus / Stats

Method Stats

promql/engine.go:152–152  ·  view source on GitHub ↗

Stats returns statistics about the lifetime of the query.

()

Source from the content-addressed store, hash-verified

150 Statement() parser.Statement
151 // Stats returns statistics about the lifetime of the query.
152 Stats() *stats.Statistics
153 // Cancel signals that a running query execution should be aborted.
154 Cancel()
155 // String returns the original query string.

Callers 6

TestQueryStatisticsFunction · 0.95
TestMaxQuerySamplesFunction · 0.95
StatsMethod · 0.65
execMethod · 0.65

Implementers 3

closeCountingQueryrules/manager_test.go
querypromql/engine.go
fakeQueryweb/api/v1/api_test.go

Calls

no outgoing calls

Tested by 3

TestQueryStatisticsFunction · 0.76
TestMaxQuerySamplesFunction · 0.76