MCPcopy Create free account

hub / github.com/prometheus/client_golang / functions

Functions1,307 in github.com/prometheus/client_golang

MethodMustCurryWith
(labels prometheus.Labels)
prometheus/example_metricvec_test.go:101
MethodMustCurryWith
MustCurryWith works as CurryWith but panics where CurryWith would have returned an error.
prometheus/summary.go:693
MethodMustCurryWith
MustCurryWith works as CurryWith but panics where CurryWith would have returned an error.
prometheus/gauge.go:280
MethodMustGather
MustGather implements Gatherer. Wraps around Gather and panics if Gather fails for any reason.
prometheus/registry.go:425
MethodMustRegister
(cs ...Collector)
prometheus/wrap.go:131
FunctionNewCounter
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
FunctionNewCounterFunc
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
FunctionNewCounterVec
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
FunctionNewExpvarCollector
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
FunctionNewGauge
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
FunctionNewGaugeFunc
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
FunctionNewGaugeVec
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
FunctionNewHistogram
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
FunctionNewHistogramVec
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
FunctionNewSummary
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
FunctionNewSummaryVec
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
FunctionNewUntypedFunc
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
MethodNumber
()
exp/api/remote/genproto/v2/types.pb.go:94
MethodNumber
()
exp/api/remote/genproto/v2/types.pb.go:146
MethodObserve
(float64)
prometheus/observer.go:19
MethodObserve
Observe calls f(value). It implements Observer.
prometheus/observer.go:38
MethodObserve
(v float64)
prometheus/histogram.go:770
MethodObserve
(v float64)
prometheus/summary.go:312
MethodObserve
(v float64)
prometheus/summary.go:470
MethodObserve
(v float64)
prometheus/promhttp/instrument_server_test.go:491
MethodObserveWithExemplar
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
FunctionPointOf
go:fix inline
prometheus/metric_test.go:300
MethodPrintln
(v ...any)
prometheus/promhttp/http.go:510
MethodProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:196
MethodProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:286
MethodProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:383
MethodProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:451
MethodProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:514
MethodProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:657
MethodProtoMessage
()
exp/api/remote/genproto/v2/types.pb.go:861
MethodProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:198
MethodProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:288
MethodProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:385
MethodProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:453
MethodProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:516
MethodProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:659
MethodProtoReflect
()
exp/api/remote/genproto/v2/types.pb.go:863
MethodPush
(target string, opts *http.PushOptions)
prometheus/promhttp/delegator.go:122
MethodPushContext
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
MethodQueryExemplars
QueryExemplars performs a query for exemplars by the given query and time range.
api/prometheus/v1/api.go:162
MethodReset
Reset deletes all metrics in this vector.
prometheus/vec.go:345
MethodReset
Reset the Backoff back to its initial condition.
exp/internal/github.com/efficientgo/core/backoff/backoff.go:44
MethodReset
()
exp/api/remote/genproto/v2/types.pb.go:183
MethodReset
()
exp/api/remote/genproto/v2/types.pb.go:273
MethodReset
()
exp/api/remote/genproto/v2/types.pb.go:370
MethodReset
()
exp/api/remote/genproto/v2/types.pb.go:501
MethodReset
()
exp/api/remote/genproto/v2/types.pb.go:644
MethodReset
()
exp/api/remote/genproto/v2/types.pb.go:848
MethodReset
Reset clears symbols table.
exp/api/remote/genproto/v2/symbols.go:79
MethodRoundTrip
RoundTrip implements the http.RoundTripper interface.
api/prometheus/v1/example_test.go:97
MethodRules
Rules returns a list of alerting and recording rules that are currently loaded.
api/prometheus/v1/api.go:173
MethodRuntimeinfo
Runtimeinfo returns the various runtime information properties about the Prometheus server.
api/prometheus/v1/api.go:166
MethodSetToCurrentTime
()
prometheus/gauge.go:111
MethodSnapshot
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
MethodStatus
()
prometheus/promhttp/delegator.go:47
MethodStore
(*http.Request, WriteMessageType)
exp/api/remote/remote_api_test.go:72
MethodStore
(req *http.Request, msgType WriteMessageType)
exp/api/remote/remote_api_test.go:116
MethodString
()
exp/api/remote/genproto/v2/types.pb.go:82
MethodString
()
exp/api/remote/genproto/v2/types.pb.go:134
MethodString
()
exp/api/remote/genproto/v2/types.pb.go:192
MethodString
()
exp/api/remote/genproto/v2/types.pb.go:282
MethodString
()
exp/api/remote/genproto/v2/types.pb.go:447
MethodString
()
exp/api/remote/genproto/v2/types.pb.go:510
MethodString
()
exp/api/remote/genproto/v2/types.pb.go:653
MethodString
()
exp/api/remote/genproto/v2/types.pb.go:857
MethodSub
(val float64)
prometheus/gauge.go:133
MethodSwap
(i, j int)
prometheus/histogram.go:1453
MethodSwap
(i, j int)
prometheus/summary.go:542
MethodSwap
(i, j int)
prometheus/internal/metric.go:30
MethodSwap
(i, j int)
prometheus/internal/metric.go:45
MethodTSDB
TSDB returns the cardinality statistics.
api/prometheus/v1/api.go:181
MethodTSDBBlocks
TSDBBlocks returns the list of currently loaded TSDB blocks and their metadata.
api/prometheus/v1/api.go:183
MethodTargets
Targets returns an overview of the current state of the Prometheus target discovery.
api/prometheus/v1/api.go:175
MethodTargetsMetadata
TargetsMetadata returns metadata about metrics currently scraped by the target.
api/prometheus/v1/api.go:177
FunctionTestAPIClientDo
(t *testing.T)
api/prometheus/v1/api_test.go:1559
FunctionTestAPIs
(t *testing.T)
api/prometheus/v1/api_test.go:125
FunctionTestAcceptance
(t *testing.T)
tutorials/whatsup/internal/acceptance_test.go:28
FunctionTestAddWithExemplar_NonExemplarAdderFallsBack
(t *testing.T)
prometheus/promhttp/instrument_server_test.go:521
FunctionTestAlreadyRegistered
(t *testing.T)
prometheus/registry_test.go:757
FunctionTestAlreadyRegisteredCollision
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
FunctionTestBackoff_NextDelay
(t *testing.T)
exp/internal/github.com/efficientgo/core/backoff/backoff_test.go:14
FunctionTestBatchHistogram
(t *testing.T)
prometheus/go_collector_latest_test.go:150
FunctionTestBuckets
(t *testing.T)
prometheus/histogram_test.go:345
FunctionTestBuildFQName
(t *testing.T)
prometheus/metric_test.go:29
FunctionTestCheckMetricConsistency
TestCheckMetricConsistency
prometheus/registry_test.go:1365
FunctionTestClientMiddlewareAPI
(t *testing.T)
prometheus/promhttp/instrument_client_test.go:184
FunctionTestClientMiddlewareAPIWithRequestContextTimeout
(t *testing.T)
prometheus/promhttp/instrument_client_test.go:268
FunctionTestClientMiddlewareAPI_WithExemplars
(t *testing.T)
prometheus/promhttp/instrument_client_test.go:200
FunctionTestClientMiddlewareAPI_WithRequestContext
(t *testing.T)
prometheus/promhttp/instrument_client_test.go:218
FunctionTestClientURL
(t *testing.T)
api/client_test.go:35
FunctionTestCoalesceGatherCallersGetDistinctSlices
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
FunctionTestCoalesceGatherDoneCalledExactlyOnce
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
FunctionTestCoalesceGatherGoroutineLeakFree
TestCoalesceGatherGoroutineLeakFree verifies that concurrent requests with a slow collector do not leak goroutines when CoalesceGather is enabled.
prometheus/promhttp/http_test.go:1160
FunctionTestCoalesceGatherNewCycleAfterCompletion
TestCoalesceGatherNewCycleAfterCompletion verifies that once all handlers of a cycle have released, the next request starts a fresh Gather.
prometheus/promhttp/http_test.go:1189
FunctionTestCoalesceGatherPanicUnblocksJoinersWithError
TestCoalesceGatherPanicUnblocksJoinersWithError verifies that when the wrapped gatherer panics, a request that joined the same cycle receives errGathe
prometheus/promhttp/http_test.go:1264
← previousnext →901–1,000 of 1,307, ranked by callers