Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/client_golang
/ functions
Functions
1,307 in github.com/prometheus/client_golang
⨍
Functions
1,307
◇
Types & classes
279
Function
TestCoalesceGatherSequentialInvariant
TestCoalesceGatherSequentialInvariant verifies that sequential requests each trigger exactly one Gather call and one done call.
prometheus/promhttp/http_test.go:1078
Function
TestCollectAndCompare
(t *testing.T)
prometheus/testutil/testutil_test.go:126
Function
TestCollectAndCompareHistogram
(t *testing.T)
prometheus/testutil/testutil_test.go:193
Function
TestCollectAndCompareNoHelp
(t *testing.T)
prometheus/testutil/testutil_test.go:173
Function
TestCollectAndCompareNoLabel
(t *testing.T)
prometheus/testutil/testutil_test.go:151
Function
TestCollectAndCount
(t *testing.T)
prometheus/testutil/testutil_test.go:410
Function
TestCollectAndFormat
(t *testing.T)
prometheus/testutil/testutil_test.go:437
Function
TestCollectAndLintBad
(t *testing.T)
prometheus/testutil/lint_test.go:45
Function
TestCollectAndLintGood
(t *testing.T)
prometheus/testutil/lint_test.go:22
Function
TestCollectorFunc
(t *testing.T)
prometheus/collectorfunc_test.go:18
Function
TestCollectorFuncWithRegistry
(t *testing.T)
prometheus/collectorfunc_test.go:56
Function
TestCollectorOnMetricPanic
TestCollectorOnMetricPanic ensures that if a collector panics while collecting a metric, the panic is recovered and the error is returned by Gather. I
prometheus/registry_test.go:1319
Function
TestConfig
(t *testing.T)
api/client_test.go:28
Function
TestConstNativeHistogram
(t *testing.T)
prometheus/histogram_test.go:1575
Function
TestCounterAdd
(t *testing.T)
prometheus/counter_test.go:27
Function
TestCounterAddInf
(t *testing.T)
prometheus/counter_test.go:146
Function
TestCounterAddLarge
(t *testing.T)
prometheus/counter_test.go:194
Function
TestCounterAddSmall
(t *testing.T)
prometheus/counter_test.go:228
Function
TestCounterExemplar
(t *testing.T)
prometheus/counter_test.go:261
Function
TestCounterVecCreatedTimestampWithDeletes
(t *testing.T)
prometheus/counter_test.go:320
Function
TestCounterVecEndToEndWithCollision
(t *testing.T)
prometheus/vec_test.go:416
Function
TestCounterVecGetMetricWithInvalidLabelValues
(t *testing.T)
prometheus/counter_test.go:91
Function
TestCurryVec
(t *testing.T)
prometheus/vec_test.go:449
Function
TestCurryVecWithCollisions
(t *testing.T)
prometheus/vec_test.go:460
Function
TestCurryVecWithConstraints
(t *testing.T)
prometheus/vec_test.go:473
Function
TestCustomValidations
(t *testing.T)
prometheus/testutil/promlint/promlint_test.go:804
Function
TestDBStatsCollector
(t *testing.T)
prometheus/collectors/dbstats_collector_test.go:23
Function
TestDarwinDescribeAndCollectAlignment
(t *testing.T)
prometheus/process_collector_darwin_test.go:84
Function
TestDarwinProcessCollector
(t *testing.T)
prometheus/process_collector_darwin_test.go:27
Function
TestDelete
(t *testing.T)
prometheus/vec_test.go:25
Function
TestDeleteLabelValues
(t *testing.T)
prometheus/vec_test.go:93
Function
TestDeleteLabelValuesWithCollisions
(t *testing.T)
prometheus/vec_test.go:104
Function
TestDeleteLabelValuesWithConstraints
(t *testing.T)
prometheus/vec_test.go:117
Function
TestDeletePartialMatch
(t *testing.T)
prometheus/vec_test.go:158
Function
TestDeletePartialMatchWithConstraints
(t *testing.T)
prometheus/vec_test.go:169
Function
TestDeleteWithCollisions
(t *testing.T)
prometheus/vec_test.go:36
Function
TestDeleteWithConstraints
(t *testing.T)
prometheus/vec_test.go:49
Function
TestDescribeAndCollectAlignment
(t *testing.T)
prometheus/process_collector_linux_test.go:107
Function
TestDescribeByCollect
(t *testing.T)
prometheus/collector_test.go:32
Function
TestDoContextCancellation
(t *testing.T)
api/client_test.go:129
Function
TestDoContextCancellationSlowServer
(t *testing.T)
api/client_test.go:175
Function
TestDoGetFallback
(t *testing.T)
api/prometheus/v1/api_test.go:2071
Function
TestExpectedRuntimeMetrics
(t *testing.T)
prometheus/go_collector_latest_test.go:310
Function
TestFindBucket
(t *testing.T)
prometheus/histogram_test.go:1535
Function
TestGatherAndFormat
(t *testing.T)
prometheus/testutil/testutil_test.go:479
Function
TestGatherDoesNotLeakGoroutines
(t *testing.T)
prometheus/registry_test.go:1399
Function
TestGaugeConcurrency
(t *testing.T)
prometheus/gauge_test.go:47
Function
TestGaugeFunc
(t *testing.T)
prometheus/gauge_test.go:164
Function
TestGaugeSetCurrentTime
(t *testing.T)
prometheus/gauge_test.go:196
Function
TestGaugeVecConcurrency
(t *testing.T)
prometheus/gauge_test.go:99
Function
TestGetLe
(t *testing.T)
prometheus/histogram_test.go:1111
Function
TestGetOptCodes
(t *testing.T)
prometheus/internal/difflib_test.go:52
Function
TestGoCollectorAllowList
(t *testing.T)
prometheus/collectors/go_collector_latest_test.go:136
Function
TestGoCollectorConcurrency
(_ *testing.T)
prometheus/go_collector_latest_test.go:395
Function
TestGoCollectorDenyList
(t *testing.T)
prometheus/collectors/go_collector_latest_test.go:202
Function
TestGoCollectorGC
(t *testing.T)
prometheus/go_collector_test.go:91
Function
TestGoCollectorGoroutines
(t *testing.T)
prometheus/go_collector_test.go:24
Function
TestGoCollectorMarshalling
(t *testing.T)
prometheus/collectors/go_collector_latest_test.go:79
Function
TestGoCollectorRuntimeMetricsUnit
(t *testing.T)
prometheus/go_collector_latest_test.go:418
Function
TestGoCollector_ExposedMetrics
(t *testing.T)
prometheus/go_collector_latest_test.go:83
Function
TestGoVersionCollector
(t *testing.T)
prometheus/collectors/version/version_test.go:28
Function
TestGoVersionCollectorWithLabels
(t *testing.T)
prometheus/collectors/version/version_test.go:70
Function
TestGroupedOpCodes
(t *testing.T)
prometheus/internal/difflib_test.go:73
Function
TestHandler
(t *testing.T)
prometheus/registry_test.go:747
Function
TestHandlerErrorHandling
(t *testing.T)
prometheus/promhttp/http_test.go:107
Function
TestHandlerMaxRequestsInFlight
(t *testing.T)
prometheus/promhttp/http_test.go:311
Function
TestHandlerOpenMetricsNegotiation
(t *testing.T)
prometheus/promhttp/http_test.go:714
Function
TestHandlerSetsVaryHeader
(t *testing.T)
prometheus/promhttp/http_test.go:487
Function
TestHandlerTimeout
(t *testing.T)
prometheus/promhttp/http_test.go:349
Function
TestHandlerWithEmojiUnit
(t *testing.T)
prometheus/promhttp/http_test.go:682
Function
TestHandlerWithEmptyUnit
(t *testing.T)
prometheus/promhttp/http_test.go:620
Function
TestHandlerWithLongUnit
(t *testing.T)
prometheus/promhttp/http_test.go:649
Function
TestHandlerWithMetricFilter
(t *testing.T)
prometheus/promhttp/http_test.go:932
Function
TestHandlerWithNilRequestURL
(t *testing.T)
prometheus/promhttp/http_test.go:1039
Function
TestHandlerWithUnit
(t *testing.T)
prometheus/promhttp/http_test.go:586
Function
TestHistogramAtomicObserve
(t *testing.T)
prometheus/histogram_test.go:369
Function
TestHistogramConcurrency
(t *testing.T)
prometheus/histogram_test.go:156
Function
TestHistogramCreatedTimestamp
(t *testing.T)
prometheus/histogram_test.go:1202
Function
TestHistogramExemplar
(t *testing.T)
prometheus/histogram_test.go:414
Function
TestHistogramJSONSerialization
(t *testing.T)
api/prometheus/v1/api_test.go:1881
Function
TestHistogramNonMonotonicBuckets
(t *testing.T)
prometheus/histogram_test.go:130
Function
TestHistogramVecConcurrency
(t *testing.T)
prometheus/histogram_test.go:242
Function
TestHistogramVecCreatedTimestamp
(t *testing.T)
prometheus/histogram_test.go:1222
Function
TestHistogramVecCreatedTimestampWithDeletes
(t *testing.T)
prometheus/histogram_test.go:1243
Function
TestHistogramVecRegisterGatherConcurrency
TestHistogramVecRegisterGatherConcurrency is an end-to-end test that concurrently calls Observe on random elements of a HistogramVec while the same Hi
prometheus/registry_test.go:897
Function
TestInstrumentHandlerLabelFromCtxConcurrent
Regression test against https://github.com/prometheus/client_golang/pull/1318
prometheus/promhttp/instrument_server_test.go:621
Function
TestInstrumentMetricHandler
(t *testing.T)
prometheus/promhttp/http_test.go:251
Function
TestInstrumentMetricHandlerWithCompression
(t *testing.T)
prometheus/promhttp/http_test.go:372
Function
TestInstrumentTimeToFirstWrite
(t *testing.T)
prometheus/promhttp/instrument_server_test.go:536
Function
TestInterfaceUpgrade
(t *testing.T)
prometheus/promhttp/instrument_server_test.go:582
Function
TestLabelCheck
(t *testing.T)
prometheus/promhttp/instrument_server_test.go:30
Function
TestLabels
(t *testing.T)
prometheus/promhttp/instrument_server_test.go:245
Function
TestLintCamelCase
(t *testing.T)
prometheus/testutil/promlint/promlint_test.go:712
Function
TestLintCounter
(t *testing.T)
prometheus/testutil/promlint/promlint_test.go:452
Function
TestLintDuplicateMetric
(t *testing.T)
prometheus/testutil/promlint/promlint_test.go:856
Function
TestLintHistogramSummaryReserved
(t *testing.T)
prometheus/testutil/promlint/promlint_test.go:515
Function
TestLintMetricTypeInName
(t *testing.T)
prometheus/testutil/promlint/promlint_test.go:659
Function
TestLintMetricUnits
(t *testing.T)
prometheus/testutil/promlint/promlint_test.go:93
Function
TestLintNoHelpText
(t *testing.T)
prometheus/testutil/promlint/promlint_test.go:34
Function
TestLintReservedChars
(t *testing.T)
prometheus/testutil/promlint/promlint_test.go:692
← previous
next →
1,001–1,100 of 1,307, ranked by callers