Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectBuckets ¶
func CollectBuckets(t require.TestingT, metrics *metrics.Metrics, metric, name, status string) []float64
CollectBuckets returns the sorted bucket boundaries for the histogram whose key matches metric/name/status. See GetBucketFromKey for why t is a require.TestingT.
func GetBucketFromKey ¶
GetBucketFromKey returns a bucket given a key k = "a:b|le:5000"
t is a require.TestingT so callers can pass either a *testing.T or, when invoked inside an EventuallyWithT retry loop, the *assert.CollectT. Passing the CollectT scopes scrape/parse failures to the retry loop instead of failing the outer test on a transient miss.
Types ¶
This section is empty.