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
TestLintUnitAbbreviations
(t *testing.T)
prometheus/testutil/promlint/promlint_test.go:746
Function
TestMemStatsEquivalence
(t *testing.T)
prometheus/go_collector_latest_test.go:258
Function
TestMetricNotFound
(t *testing.T)
prometheus/testutil/testutil_test.go:292
Function
TestMetricVec
(t *testing.T)
prometheus/vec_test.go:263
Function
TestMetricVecWithCollisions
(t *testing.T)
prometheus/vec_test.go:274
Function
TestMetricVecWithConstraints
(t *testing.T)
prometheus/vec_test.go:344
Function
TestMiddlewareAPI
(t *testing.T)
prometheus/promhttp/instrument_server_test.go:419
Function
TestMiddlewareAPI_SummaryWithExemplars
TestMiddlewareAPI_SummaryWithExemplars is a regression test for https://github.com/prometheus/client_golang/issues/1258. SummaryVec is a valid prometh
prometheus/promhttp/instrument_server_test.go:452
Function
TestMiddlewareAPI_WithExemplars
(t *testing.T)
prometheus/promhttp/instrument_server_test.go:431
Function
TestNativeHistogram
(t *testing.T)
prometheus/histogram_test.go:473
Function
TestNativeHistogramConcurrency
(t *testing.T)
prometheus/histogram_test.go:1010
Function
TestNativeHistogramExemplar
(t *testing.T)
prometheus/histogram_test.go:1306
Function
TestNegotiateContentEncoding
(t *testing.T)
internal/github.com/golang/gddo/httputil/negotiate_test.go:32
Function
TestNegotiateEncodingWriter
(t *testing.T)
prometheus/promhttp/http_test.go:519
Function
TestNewConstHistogramWithCreatedTimestamp
(t *testing.T)
prometheus/histogram_test.go:1281
Function
TestNewConstMetricInvalidLabelValues
(t *testing.T)
prometheus/value_test.go:24
Function
TestNewConstMetricWithCreatedTimestamp
(t *testing.T)
prometheus/value_test.go:61
Function
TestNewConstSummaryWithCreatedTimestamp
(t *testing.T)
prometheus/summary_test.go:475
Function
TestNewDescInvalidConstLabelValues
(t *testing.T)
prometheus/desc_test.go:20
Function
TestNewDescInvalidVariableLabelName
(t *testing.T)
prometheus/desc_test.go:33
Function
TestNewDescNilLabelValues
(t *testing.T)
prometheus/desc_test.go:46
Function
TestNewDescWithNilLabelValues_String
(t *testing.T)
prometheus/desc_test.go:58
Function
TestNewDescWithUnit_String
(t *testing.T)
prometheus/desc_test.go:79
Function
TestNewInvalidDesc_String
(t *testing.T)
prometheus/desc_test.go:70
Function
TestNewMultiTRegistry
(t *testing.T)
prometheus/registry_test.go:1205
Function
TestNewPidFileFn
(t *testing.T)
prometheus/process_collector_test.go:24
Function
TestNil
(t *testing.T)
prometheus/wrap_test.go:340
Function
TestNil
(_ *testing.T)
prometheus/promauto/auto_test.go:22
Function
TestNoMetricFilter
(t *testing.T)
prometheus/testutil/testutil_test.go:268
Function
TestObserveWithExemplar_NonExemplarObserverFallsBack
(t *testing.T)
prometheus/promhttp/instrument_server_test.go:506
Function
TestOutputFormatRangeFormatUnified
(t *testing.T)
prometheus/internal/difflib_test.go:218
Function
TestParseAccept
(t *testing.T)
internal/github.com/golang/gddo/httputil/header/header_test.go:41
Function
TestPlayground
(t *testing.T)
tutorials/whatsup/internal/playground_test.go:37
Function
TestProcessCollector
(t *testing.T)
prometheus/process_collector_linux_test.go:29
Function
TestPush
(t *testing.T)
prometheus/push/push_test.go:29
Function
TestPush
(t *testing.T)
prometheus/graphite/bridge_test.go:348
Function
TestRegisterUnregisterCollector
TestRegisterUnregisterCollector ensures registering and unregistering a collector doesn't leave any dangling metrics. We use NewGoCollector as a nice
prometheus/registry_test.go:880
Function
TestRemoteAPI_Write_GenericProtoResetsPooledBuffer
(t *testing.T)
exp/api/remote/remote_api_test.go:188
Function
TestRemoteAPI_Write_WithHandler
(t *testing.T)
exp/api/remote/remote_api_test.go:227
Function
TestReplaceInvalidRune
(t *testing.T)
prometheus/graphite/bridge_test.go:472
Function
TestResponseWriterDelegatorUnwrap
(t *testing.T)
prometheus/promhttp/delegator_test.go:57
Function
TestRetryAfterDuration
(t *testing.T)
exp/api/remote/remote_api_test.go:41
Function
TestRmForMemStats
(t *testing.T)
prometheus/go_collector_latest_test.go:32
Function
TestRuntimeMetricsToProm
(t *testing.T)
prometheus/internal/go_runtime_metrics_test.go:21
Function
TestSFBugsComparingEmptyLists
(t *testing.T)
prometheus/internal/difflib_test.go:205
Function
TestSFBugsRatioForNullSeqn
(t *testing.T)
prometheus/internal/difflib_test.go:198
Function
TestSampleStreamJSONSerialization
(t *testing.T)
api/prometheus/v1/api_test.go:1986
Function
TestSamplesJSONSerialization
(t *testing.T)
api/prometheus/v1/api_test.go:1785
Function
TestSanitize
(t *testing.T)
prometheus/graphite/bridge_test.go:38
Function
TestScrapeAndCompare
(t *testing.T)
prometheus/testutil/testutil_test.go:330
Function
TestScrapeAndCompareBadStatusCode
(t *testing.T)
prometheus/testutil/testutil_test.go:385
Function
TestScrapeAndCompareFetchingFail
(t *testing.T)
prometheus/testutil/testutil_test.go:375
Function
TestScrapeAndCompareWithMultipleExpected
(t *testing.T)
prometheus/testutil/testutil_test.go:350
Function
TestSequenceMatcherRatio
(t *testing.T)
prometheus/internal/difflib_test.go:45
Function
TestSnappyDecodeMiddleware
(t *testing.T)
exp/api/remote/remote_api_test.go:381
Function
TestSplitLines
(t *testing.T)
prometheus/internal/difflib_test.go:235
Function
TestSummaryConcurrency
(t *testing.T)
prometheus/summary_test.go:201
Function
TestSummaryDecay
(t *testing.T)
prometheus/summary_test.go:373
Function
TestSummaryVecConcurrency
(t *testing.T)
prometheus/summary_test.go:282
Function
TestSummaryVecCreatedTimestampWithDeletes
(t *testing.T)
prometheus/summary_test.go:428
Function
TestSummaryVecWithQuantileLabel
(t *testing.T)
prometheus/summary_test.go:95
Function
TestSummaryWithDefaultObjectives
(t *testing.T)
prometheus/summary_test.go:28
Function
TestSummaryWithQuantileLabel
(t *testing.T)
prometheus/summary_test.go:82
Function
TestSummaryWithoutObjectives
(t *testing.T)
prometheus/summary_test.go:54
Function
TestSymbolsTable
(t *testing.T)
exp/api/remote/genproto/v2/symbols_test.go:45
Function
TestTSDBBlockTypeParity
TestTSDBBlockTypeParity diffs the upstream and client struct definitions field by field, catching added, removed, renamed, or retyped fields and omite
api/prometheus/v1/paritytest/tsdb_blocks_parity_test.go:62
Function
TestTimerByOutcome
(t *testing.T)
prometheus/timer_test.go:165
Function
TestTimerConditionalTiming
(t *testing.T)
prometheus/timer_test.go:132
Function
TestTimerEmpty
(t *testing.T)
prometheus/timer_test.go:121
Function
TestTimerObserve
(t *testing.T)
prometheus/timer_test.go:25
Function
TestTimerObserveWithExemplar
(t *testing.T)
prometheus/timer_test.go:66
Function
TestToFloat64
(t *testing.T)
prometheus/testutil/testutil_test.go:42
Function
TestToReader
(t *testing.T)
prometheus/graphite/bridge_test.go:246
Function
TestWindowsDescribeAndCollectAlignment
(t *testing.T)
prometheus/process_collector_windows_test.go:72
Function
TestWindowsProcessCollector
(t *testing.T)
prometheus/process_collector_windows_test.go:27
Function
TestWindowsProcessCollectorUsesPidFn
(t *testing.T)
prometheus/process_collector_windows_test.go:121
Function
TestWithAsciiBJunk
(t *testing.T)
prometheus/internal/difflib_test.go:178
Function
TestWithAsciiOnDelete
(t *testing.T)
prometheus/internal/difflib_test.go:170
Function
TestWithAsciiOneInsert
(t *testing.T)
prometheus/internal/difflib_test.go:154
Function
TestWithExemplarsMetric
(t *testing.T)
prometheus/metric_test.go:48
Function
TestWithExemplarsNativeHistogramMetric
(t *testing.T)
prometheus/metric_test.go:98
Function
TestWithGoCollectorDefault
(t *testing.T)
prometheus/collectors/go_collector_latest_test.go:96
Function
TestWithGoCollectorMemStatsMetricsDisabled
(t *testing.T)
prometheus/collectors/go_collector_latest_test.go:116
Function
TestWrapCollector
(t *testing.T)
prometheus/wrap_test.go:349
Function
TestWrapRegisterer
(t *testing.T)
prometheus/wrap_test.go:46
Function
TestWriteHistogram
(t *testing.T)
prometheus/graphite/bridge_test.go:164
Function
TestWriteResponse
(t *testing.T)
exp/api/remote/remote_headers_test.go:25
Function
TestWriteSummary
(t *testing.T)
prometheus/graphite/bridge_test.go:68
Function
TestWriteToTextfile
(t *testing.T)
prometheus/registry_test.go:994
Function
TestZstdRegistersWriter
(t *testing.T)
prometheus/promhttp/zstd/zstd_test.go:26
Function
TestZstdWriterRoundTrip
(t *testing.T)
prometheus/promhttp/zstd/zstd_test.go:32
Function
Test_WriteHandler_V1HandlingDoesNotAddV2Headers
(t *testing.T)
exp/api/remote/remote_api_test.go:76
Method
ToDTO
()
prometheus/value.go:47
Method
Type
()
exp/api/remote/genproto/v2/types.pb.go:142
Method
URL
(ep string, args map[string]string)
api/client.go:83
Method
URL
(ep string, args map[string]string)
api/prometheus/v1/api.go:1043
Method
URL
(ep string, args map[string]string)
api/prometheus/v1/api_test.go:55
Method
URL
(_ string, _ map[string]string)
api/prometheus/v1/api_test.go:1525
Method
URL
(_ string, _ map[string]string)
api/prometheus/v1/api_test.go:2041
Method
UnmarshalJSON
(b []byte)
api/prometheus/v1/api.go:442
← previous
next →
1,101–1,200 of 1,307, ranked by callers