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
UnmarshalJSON
(b []byte)
api/prometheus/v1/api.go:497
Method
UnmarshalJSON
(b []byte)
api/prometheus/v1/api.go:515
Method
UnmarshalVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:848
Method
UnmarshalVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:965
Method
UnmarshalVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:1249
Method
UnmarshalVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:1487
Method
UnmarshalVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:1595
Method
UnmarshalVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:2175
Method
Unregister
(c Collector)
prometheus/wrap.go:142
Method
WalReplay
WalReplay returns the current replay status of the wal.
api/prometheus/v1/api.go:185
Method
With
(labels prometheus.Labels)
prometheus/example_metricvec_test.go:85
Function
WithAPINoRetryOnRateLimit
WithAPINoRetryOnRateLimit returns APIOption that disables retrying on rate limit status code.
exp/api/remote/remote_api.go:110
Method
WithAttrs
([]slog.Attr)
exp/api/remote/remote_api.go:130
Function
WithExemplarFromRequest
WithExemplarFromRequest allows you to inject a function that will get exemplar from request that will be put to counter and histogram metrics. If the
prometheus/promhttp/option.go:76
Function
WithGoCollections
WithGoCollections allows enabling different collections for Go collector on top of base metrics. Deprecated: Use WithGoCollectorRuntimeMetrics() and
prometheus/collectors/go_collector_latest.go:147
Method
WithGroup
(string)
exp/api/remote/remote_api.go:131
Function
WithLabelFromRequest
WithLabelFromRequest registers a label for dynamic resolution with access to the request.
prometheus/promhttp/option.go:94
Function
WithLimit
WithLimit provides an optional maximum number of returned entries for APIs that support limit parameter e.g. https://prometheus.io/docs/prometheus/lat
api/prometheus/v1/api.go:764
Function
WithLookbackDelta
WithLookbackDelta can be used to provide an optional query lookback delta for Query and QueryRange. This URL variable is not documented on Prometheus
api/prometheus/v1/api.go:747
Function
WithStats
WithStats can be used to provide an optional per step stats for Query and QueryRange. This URL variable is not documented on Prometheus HTTP API. http
api/prometheus/v1/api.go:756
Function
WithWriteHandlerMiddlewares
WithWriteHandlerMiddlewares returns WriteHandlerOption that allows providing middlewares. Multiple middlewares can be provided and will be applied in
exp/api/remote/remote_api.go:445
Method
WrapHandler
WrapHandler wraps the given HTTP handler for instrumentation: It registers four metric collectors (if not already done) and reports HTTP metrics to th
examples/middleware/httpmiddleware/httpmiddleware.go:41
Method
Write
(out *dto.Metric)
prometheus/value.go:93
Method
Write
(out *dto.Metric)
prometheus/value.go:179
Method
Write
(out *dto.Metric)
prometheus/go_collector_latest.go:544
Method
Write
(out *dto.Metric)
prometheus/wrap.go:204
Method
Write
(out *dto.Metric)
prometheus/counter.go:162
Method
Write
(out *dto.Metric)
prometheus/example_metricvec_test.go:39
Method
Write
(*dto.Metric)
prometheus/metric.go:146
Method
Write
(pb *dto.Metric)
prometheus/metric.go:153
Method
Write
(out *dto.Metric)
prometheus/histogram.go:783
Method
Write
(out *dto.Metric)
prometheus/histogram.go:1327
Method
Write
(out *dto.Metric)
prometheus/histogram.go:2005
Method
Write
(out *dto.Metric)
prometheus/summary.go:326
Method
Write
(out *dto.Metric)
prometheus/summary.go:489
Method
Write
(out *dto.Metric)
prometheus/summary.go:714
Method
Write
(out *dto.Metric)
prometheus/gauge.go:137
Method
Write
(b []byte)
prometheus/promhttp/delegator.go:68
Method
Write
(_ []byte)
prometheus/promhttp/delegator_test.go:32
Method
Write
(*dto.Metric)
prometheus/promhttp/instrument_server_test.go:500
Method
Write
([]byte)
prometheus/promhttp/instrument_server_test.go:560
Method
Write
([]byte)
prometheus/promhttp/instrument_server_test.go:578
Method
WriteHeader
(int)
prometheus/promhttp/instrument_server_test.go:561
Method
Written
()
prometheus/promhttp/delegator.go:51
Method
apply
(opt *options)
prometheus/promhttp/option.go:61
Function
canCollectProcess
()
prometheus/process_collector_not_supported.go:18
Function
canCollectProcess
()
prometheus/process_collector_windows.go:23
Function
canCollectProcess
()
prometheus/process_collector_procfsenabled.go:22
Method
compile
()
prometheus/labels.go:66
Method
compile
()
prometheus/labels.go:103
Method
compile
()
prometheus/labels.go:118
Method
describe
describe returns all descriptions of the collector for wasip1 and js. Ensure that this list of descriptors is kept in sync with the metrics collected
prometheus/process_collector_not_supported.go:30
Method
describe
describe returns all descriptions of the collector for Darwin. Ensure that this list of descriptors is kept in sync with the metrics collected in the
prometheus/process_collector_mem_nocgo_darwin.go:26
Method
describe
describe returns all descriptions of the collector for others than windows, js, wasip1 and darwin. Ensure that this list of descriptors is kept in syn
prometheus/process_collector_procfsenabled.go:85
Method
describe
describe returns all descriptions of the collector for Darwin. Ensure that this list of descriptors is kept in sync with the metrics collected in the
prometheus/process_collector_mem_cgo_darwin.go:38
Function
getMemory
()
prometheus/process_collector_mem_nocgo_darwin.go:18
Function
getPIDFn
()
prometheus/get_pid_gopherjs.go:18
Function
getRuntimeNumThreads
getRuntimeNumThreads returns the number of open OS threads.
prometheus/num_threads_gopherjs.go:19
Function
get_memory_info
prometheus/process_collector_mem_cgo_darwin.c:29
Function
handler
(_ http.ResponseWriter, _ *http.Request)
prometheus/example_timer_complex_test.go:43
Function
hashAdd
hashAdd adds a string to a fnv64a hash value, returning the updated hash.
prometheus/fnv.go:29
Function
hashAddByte
hashAddByte adds a byte to a fnv64a hash value, returning the updated hash.
prometheus/fnv.go:38
Function
init
()
prometheus/registry.go:60
Function
init
()
prometheus/promhttp/delegator.go:128
Function
init
()
prometheus/promhttp/zstd/zstd.go:35
Function
init
()
internal/github.com/golang/gddo/httputil/header/header.go:25
Function
init
()
exp/api/remote/genproto/v2/types.pb.go:1067
Function
init
()
api/prometheus/v1/api_126.go:32
Method
isHistogram_Count
()
exp/api/remote/genproto/v2/types.pb.go:803
Method
isHistogram_Count
()
exp/api/remote/genproto/v2/types.pb.go:814
Method
isHistogram_Count
()
exp/api/remote/genproto/v2/types.pb.go:816
Method
isHistogram_ZeroCount
()
exp/api/remote/genproto/v2/types.pb.go:819
Method
isHistogram_ZeroCount
()
exp/api/remote/genproto/v2/types.pb.go:830
Method
isHistogram_ZeroCount
()
exp/api/remote/genproto/v2/types.pb.go:832
Method
labelNames
()
prometheus/labels.go:82
Method
labelNames
()
prometheus/labels.go:109
Method
labelNames
()
prometheus/labels.go:122
Function
main
()
prometheus/gen_go_collector_metrics_set.go:36
Function
main
()
prometheus/collectors/gen_go_collector_set.go:51
Function
main
()
examples/random/main.go:74
Function
main
()
examples/nativehistogram/main.go:48
Function
main
()
examples/middleware/main.go:28
Function
main
()
examples/customlabels/main.go:33
Function
main
()
examples/gocollector/main.go:31
Function
main
()
examples/simple/main.go:30
Function
main
Build using ldflags, for example: go build -ldflags "-X github.com/prometheus/common/version.Version=1.0.0 -X github.com/prometheus/common/version.Bra
examples/versioncollector/main.go:32
Function
main
()
examples/createdtimestamps/main.go:27
Function
main
()
examples/exemplars/main.go:31
Function
main
()
tutorials/whatsup/main.go:42
Function
main
()
tutorials/whatsup/reference/main.go:45
Function
makeBuckets
(buckets *sync.Map)
prometheus/histogram.go:1482
Method
observe
observe manages the parts of observe that only affects histogramCounts. doSparse is true if sparse buckets should be done, too.
prometheus/histogram.go:659
Method
processCollect
(ch chan<- Metric)
prometheus/process_collector_not_supported.go:22
Method
processCollect
(ch chan<- Metric)
prometheus/process_collector_windows.go:85
Method
processCollect
(ch chan<- Metric)
prometheus/process_collector_procfsenabled.go:27
Method
reset
reset resets the whole histogram. It locks h.mtx itself, i.e. it has to be called without having locked h.mtx.
prometheus/histogram.go:993
Function
unmarshalSampleStreamJSON
(ptr unsafe.Pointer, iter *jsoniter.Iterator)
api/prometheus/v1/api_126.go:120
Function
withAllMetrics
()
prometheus/collectors/go_collector_go127_test.go:18
Function
withAllMetrics
()
prometheus/collectors/go_collector_go125_test.go:18
Function
withDebugMetrics
()
prometheus/collectors/go_collector_go127_test.go:198
← previous
next →
1,201–1,300 of 1,307, ranked by callers