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
Method
MustCurryWith
(labels prometheus.Labels)
prometheus/example_metricvec_test.go:101
Method
MustCurryWith
MustCurryWith works as CurryWith but panics where CurryWith would have returned an error.
prometheus/summary.go:693
Method
MustCurryWith
MustCurryWith works as CurryWith but panics where CurryWith would have returned an error.
prometheus/gauge.go:280
Method
MustGather
MustGather implements Gatherer. Wraps around Gather and panics if Gather fails for any reason.
prometheus/registry.go:425
Method
MustRegister
(cs ...Collector)
prometheus/wrap.go:131
Function
NewCounter
NewCounter works like the function of the same name in the prometheus package but it automatically registers the Counter with the prometheus.DefaultRe
prometheus/promauto/auto.go:167
Function
NewCounterFunc
NewCounterFunc works like the function of the same name in the prometheus package but it automatically registers the CounterFunc with the prometheus.D
prometheus/promauto/auto.go:183
Function
NewCounterVec
NewCounterVec works like the function of the same name in the prometheus package but it automatically registers the CounterVec with the prometheus.Def
prometheus/promauto/auto.go:175
Function
NewExpvarCollector
NewExpvarCollector returns a newly allocated expvar Collector. An expvar Collector collects metrics from the expvar interface. It provides a quick wa
prometheus/collectors/expvar_collector.go:54
Function
NewGauge
NewGauge works like the function of the same name in the prometheus package but it automatically registers the Gauge with the prometheus.DefaultRegist
prometheus/promauto/auto.go:190
Function
NewGaugeFunc
NewGaugeFunc works like the function of the same name in the prometheus package but it automatically registers the GaugeFunc with the prometheus.Defau
prometheus/promauto/auto.go:204
Function
NewGaugeVec
NewGaugeVec works like the function of the same name in the prometheus package but it automatically registers the GaugeVec with the prometheus.Default
prometheus/promauto/auto.go:197
Function
NewHistogram
NewHistogram works like the function of the same name in the prometheus package but it automatically registers the Histogram with the prometheus.Defau
prometheus/promauto/auto.go:226
Function
NewHistogramVec
NewHistogramVec works like the function of the same name in the prometheus package but it automatically registers the HistogramVec with the prometheus
prometheus/promauto/auto.go:234
Function
NewSummary
NewSummary works like the function of the same name in the prometheus package but it automatically registers the Summary with the prometheus.DefaultRe
prometheus/promauto/auto.go:211
Function
NewSummaryVec
NewSummaryVec works like the function of the same name in the prometheus package but it automatically registers the SummaryVec with the prometheus.Def
prometheus/promauto/auto.go:219
Function
NewUntypedFunc
NewUntypedFunc works like the function of the same name in the prometheus package but it automatically registers the UntypedFunc with the prometheus.D
prometheus/promauto/auto.go:242
Method
Number
()
exp/api/remote/genproto/v2/types.pb.go:94
Method
Number
()
exp/api/remote/genproto/v2/types.pb.go:146
Method
Observe
(float64)
prometheus/observer.go:19
Method
Observe
Observe calls f(value). It implements Observer.
prometheus/observer.go:38
Method
Observe
(v float64)
prometheus/histogram.go:770
Method
Observe
(v float64)
prometheus/summary.go:312
Method
Observe
(v float64)
prometheus/summary.go:470
Method
Observe
(v float64)
prometheus/promhttp/instrument_server_test.go:491
Method
ObserveWithExemplar
ObserveWithExemplar should not be called in a high-frequency setting for a native histogram with configured exemplars. For this case, the implementati
prometheus/histogram.go:777
Function
PointOf
go:fix inline
prometheus/metric_test.go:300
Method
Println
(v ...any)
prometheus/promhttp/http.go:510
Method
ProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:196
Method
ProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:286
Method
ProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:383
Method
ProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:451
Method
ProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:514
Method
ProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:657
Method
ProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:861
Method
ProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:198
Method
ProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:288
Method
ProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:385
Method
ProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:453
Method
ProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:516
Method
ProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:659
Method
ProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:863
Method
Push
(target string, opts *http.PushOptions)
prometheus/promhttp/delegator.go:122
Method
PushContext
PushContext is like Push but includes a context. If the context expires before HTTP request is complete, an error is returned.
prometheus/push/push.go:132
Method
QueryExemplars
QueryExemplars performs a query for exemplars by the given query and time range.
api/prometheus/v1/api.go:162
Method
Reset
Reset deletes all metrics in this vector.
prometheus/vec.go:345
Method
Reset
Reset the Backoff back to its initial condition.
exp/internal/github.com/efficientgo/core/backoff/backoff.go:44
Method
Reset
()
exp/api/remote/genproto/v2/types.pb.go:183
Method
Reset
()
exp/api/remote/genproto/v2/types.pb.go:273
Method
Reset
()
exp/api/remote/genproto/v2/types.pb.go:370
Method
Reset
()
exp/api/remote/genproto/v2/types.pb.go:501
Method
Reset
()
exp/api/remote/genproto/v2/types.pb.go:644
Method
Reset
()
exp/api/remote/genproto/v2/types.pb.go:848
Method
Reset
Reset clears symbols table.
exp/api/remote/genproto/v2/symbols.go:79
Method
RoundTrip
RoundTrip implements the http.RoundTripper interface.
api/prometheus/v1/example_test.go:97
Method
Rules
Rules returns a list of alerting and recording rules that are currently loaded.
api/prometheus/v1/api.go:173
Method
Runtimeinfo
Runtimeinfo returns the various runtime information properties about the Prometheus server.
api/prometheus/v1/api.go:166
Method
SetToCurrentTime
()
prometheus/gauge.go:111
Method
Snapshot
Snapshot creates a snapshot of all current data into snapshots/<datetime>-<rand> under the TSDB's data directory and returns the directory as response
api/prometheus/v1/api.go:171
Method
Status
()
prometheus/promhttp/delegator.go:47
Method
Store
(*http.Request, WriteMessageType)
exp/api/remote/remote_api_test.go:72
Method
Store
(req *http.Request, msgType WriteMessageType)
exp/api/remote/remote_api_test.go:116
Method
String
()
exp/api/remote/genproto/v2/types.pb.go:82
Method
String
()
exp/api/remote/genproto/v2/types.pb.go:134
Method
String
()
exp/api/remote/genproto/v2/types.pb.go:192
Method
String
()
exp/api/remote/genproto/v2/types.pb.go:282
Method
String
()
exp/api/remote/genproto/v2/types.pb.go:447
Method
String
()
exp/api/remote/genproto/v2/types.pb.go:510
Method
String
()
exp/api/remote/genproto/v2/types.pb.go:653
Method
String
()
exp/api/remote/genproto/v2/types.pb.go:857
Method
Sub
(val float64)
prometheus/gauge.go:133
Method
Swap
(i, j int)
prometheus/histogram.go:1453
Method
Swap
(i, j int)
prometheus/summary.go:542
Method
Swap
(i, j int)
prometheus/internal/metric.go:30
Method
Swap
(i, j int)
prometheus/internal/metric.go:45
Method
TSDB
TSDB returns the cardinality statistics.
api/prometheus/v1/api.go:181
Method
TSDBBlocks
TSDBBlocks returns the list of currently loaded TSDB blocks and their metadata.
api/prometheus/v1/api.go:183
Method
Targets
Targets returns an overview of the current state of the Prometheus target discovery.
api/prometheus/v1/api.go:175
Method
TargetsMetadata
TargetsMetadata returns metadata about metrics currently scraped by the target.
api/prometheus/v1/api.go:177
Function
TestAPIClientDo
(t *testing.T)
api/prometheus/v1/api_test.go:1559
Function
TestAPIs
(t *testing.T)
api/prometheus/v1/api_test.go:125
Function
TestAcceptance
(t *testing.T)
tutorials/whatsup/internal/acceptance_test.go:28
Function
TestAddWithExemplar_NonExemplarAdderFallsBack
(t *testing.T)
prometheus/promhttp/instrument_server_test.go:521
Function
TestAlreadyRegistered
(t *testing.T)
prometheus/registry_test.go:757
Function
TestAlreadyRegisteredCollision
TestAlreadyRegistered will fail with the old, weaker hash function. It is taken from https://play.golang.org/p/HpV7YE6LI_4 , authored by @awilliams.
prometheus/registry_test.go:1133
Function
TestBackoff_NextDelay
(t *testing.T)
exp/internal/github.com/efficientgo/core/backoff/backoff_test.go:14
Function
TestBatchHistogram
(t *testing.T)
prometheus/go_collector_latest_test.go:150
Function
TestBuckets
(t *testing.T)
prometheus/histogram_test.go:345
Function
TestBuildFQName
(t *testing.T)
prometheus/metric_test.go:29
Function
TestCheckMetricConsistency
TestCheckMetricConsistency
prometheus/registry_test.go:1365
Function
TestClientMiddlewareAPI
(t *testing.T)
prometheus/promhttp/instrument_client_test.go:184
Function
TestClientMiddlewareAPIWithRequestContextTimeout
(t *testing.T)
prometheus/promhttp/instrument_client_test.go:268
Function
TestClientMiddlewareAPI_WithExemplars
(t *testing.T)
prometheus/promhttp/instrument_client_test.go:200
Function
TestClientMiddlewareAPI_WithRequestContext
(t *testing.T)
prometheus/promhttp/instrument_client_test.go:218
Function
TestClientURL
(t *testing.T)
api/client_test.go:35
Function
TestCoalesceGatherCallersGetDistinctSlices
TestCoalesceGatherCallersGetDistinctSlices verifies that callers sharing one cycle each receive their own slice header, so one caller reordering or fi
prometheus/promhttp/http_test.go:1319
Function
TestCoalesceGatherDoneCalledExactlyOnce
TestCoalesceGatherDoneCalledExactlyOnce verifies that when a second request joins an in-flight Gather cycle, exactly one Gather and one done call occu
prometheus/promhttp/http_test.go:1103
Function
TestCoalesceGatherGoroutineLeakFree
TestCoalesceGatherGoroutineLeakFree verifies that concurrent requests with a slow collector do not leak goroutines when CoalesceGather is enabled.
prometheus/promhttp/http_test.go:1160
Function
TestCoalesceGatherNewCycleAfterCompletion
TestCoalesceGatherNewCycleAfterCompletion verifies that once all handlers of a cycle have released, the next request starts a fresh Gather.
prometheus/promhttp/http_test.go:1189
Function
TestCoalesceGatherPanicUnblocksJoinersWithError
TestCoalesceGatherPanicUnblocksJoinersWithError verifies that when the wrapped gatherer panics, a request that joined the same cycle receives errGathe
prometheus/promhttp/http_test.go:1264
← previous
next →
901–1,000 of 1,307, ranked by callers