MCPcopy Create free account

hub / github.com/prometheus/client_golang / functions

Functions1,307 in github.com/prometheus/client_golang

MethodUnmarshalJSON
(b []byte)
api/prometheus/v1/api.go:497
MethodUnmarshalJSON
(b []byte)
api/prometheus/v1/api.go:515
MethodUnmarshalVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:848
MethodUnmarshalVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:965
MethodUnmarshalVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:1249
MethodUnmarshalVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:1487
MethodUnmarshalVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:1595
MethodUnmarshalVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:2175
MethodUnregister
(c Collector)
prometheus/wrap.go:142
MethodWalReplay
WalReplay returns the current replay status of the wal.
api/prometheus/v1/api.go:185
MethodWith
(labels prometheus.Labels)
prometheus/example_metricvec_test.go:85
FunctionWithAPINoRetryOnRateLimit
WithAPINoRetryOnRateLimit returns APIOption that disables retrying on rate limit status code.
exp/api/remote/remote_api.go:110
MethodWithAttrs
([]slog.Attr)
exp/api/remote/remote_api.go:130
FunctionWithExemplarFromRequest
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
FunctionWithGoCollections
WithGoCollections allows enabling different collections for Go collector on top of base metrics. Deprecated: Use WithGoCollectorRuntimeMetrics() and
prometheus/collectors/go_collector_latest.go:147
MethodWithGroup
(string)
exp/api/remote/remote_api.go:131
FunctionWithLabelFromRequest
WithLabelFromRequest registers a label for dynamic resolution with access to the request.
prometheus/promhttp/option.go:94
FunctionWithLimit
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
FunctionWithLookbackDelta
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
FunctionWithStats
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
FunctionWithWriteHandlerMiddlewares
WithWriteHandlerMiddlewares returns WriteHandlerOption that allows providing middlewares. Multiple middlewares can be provided and will be applied in
exp/api/remote/remote_api.go:445
MethodWrapHandler
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
MethodWrite
(out *dto.Metric)
prometheus/value.go:93
MethodWrite
(out *dto.Metric)
prometheus/value.go:179
MethodWrite
(out *dto.Metric)
prometheus/go_collector_latest.go:544
MethodWrite
(out *dto.Metric)
prometheus/wrap.go:204
MethodWrite
(out *dto.Metric)
prometheus/counter.go:162
MethodWrite
(out *dto.Metric)
prometheus/example_metricvec_test.go:39
MethodWrite
(*dto.Metric)
prometheus/metric.go:146
MethodWrite
(pb *dto.Metric)
prometheus/metric.go:153
MethodWrite
(out *dto.Metric)
prometheus/histogram.go:783
MethodWrite
(out *dto.Metric)
prometheus/histogram.go:1327
MethodWrite
(out *dto.Metric)
prometheus/histogram.go:2005
MethodWrite
(out *dto.Metric)
prometheus/summary.go:326
MethodWrite
(out *dto.Metric)
prometheus/summary.go:489
MethodWrite
(out *dto.Metric)
prometheus/summary.go:714
MethodWrite
(out *dto.Metric)
prometheus/gauge.go:137
MethodWrite
(b []byte)
prometheus/promhttp/delegator.go:68
MethodWrite
(_ []byte)
prometheus/promhttp/delegator_test.go:32
MethodWrite
(*dto.Metric)
prometheus/promhttp/instrument_server_test.go:500
MethodWrite
([]byte)
prometheus/promhttp/instrument_server_test.go:560
MethodWrite
([]byte)
prometheus/promhttp/instrument_server_test.go:578
MethodWriteHeader
(int)
prometheus/promhttp/instrument_server_test.go:561
MethodWritten
()
prometheus/promhttp/delegator.go:51
Methodapply
(opt *options)
prometheus/promhttp/option.go:61
FunctioncanCollectProcess
()
prometheus/process_collector_not_supported.go:18
FunctioncanCollectProcess
()
prometheus/process_collector_windows.go:23
FunctioncanCollectProcess
()
prometheus/process_collector_procfsenabled.go:22
Methodcompile
()
prometheus/labels.go:66
Methodcompile
()
prometheus/labels.go:103
Methodcompile
()
prometheus/labels.go:118
Methoddescribe
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
Methoddescribe
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
Methoddescribe
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
Methoddescribe
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
FunctiongetMemory
()
prometheus/process_collector_mem_nocgo_darwin.go:18
FunctiongetPIDFn
()
prometheus/get_pid_gopherjs.go:18
FunctiongetRuntimeNumThreads
getRuntimeNumThreads returns the number of open OS threads.
prometheus/num_threads_gopherjs.go:19
Functionget_memory_info
prometheus/process_collector_mem_cgo_darwin.c:29
Functionhandler
(_ http.ResponseWriter, _ *http.Request)
prometheus/example_timer_complex_test.go:43
FunctionhashAdd
hashAdd adds a string to a fnv64a hash value, returning the updated hash.
prometheus/fnv.go:29
FunctionhashAddByte
hashAddByte adds a byte to a fnv64a hash value, returning the updated hash.
prometheus/fnv.go:38
Functioninit
()
prometheus/registry.go:60
Functioninit
()
prometheus/promhttp/delegator.go:128
Functioninit
()
prometheus/promhttp/zstd/zstd.go:35
Functioninit
()
internal/github.com/golang/gddo/httputil/header/header.go:25
Functioninit
()
exp/api/remote/genproto/v2/types.pb.go:1067
Functioninit
()
api/prometheus/v1/api_126.go:32
MethodisHistogram_Count
()
exp/api/remote/genproto/v2/types.pb.go:803
MethodisHistogram_Count
()
exp/api/remote/genproto/v2/types.pb.go:814
MethodisHistogram_Count
()
exp/api/remote/genproto/v2/types.pb.go:816
MethodisHistogram_ZeroCount
()
exp/api/remote/genproto/v2/types.pb.go:819
MethodisHistogram_ZeroCount
()
exp/api/remote/genproto/v2/types.pb.go:830
MethodisHistogram_ZeroCount
()
exp/api/remote/genproto/v2/types.pb.go:832
MethodlabelNames
()
prometheus/labels.go:82
MethodlabelNames
()
prometheus/labels.go:109
MethodlabelNames
()
prometheus/labels.go:122
Functionmain
()
prometheus/gen_go_collector_metrics_set.go:36
Functionmain
()
prometheus/collectors/gen_go_collector_set.go:51
Functionmain
()
examples/random/main.go:74
Functionmain
()
examples/nativehistogram/main.go:48
Functionmain
()
examples/middleware/main.go:28
Functionmain
()
examples/customlabels/main.go:33
Functionmain
()
examples/gocollector/main.go:31
Functionmain
()
examples/simple/main.go:30
Functionmain
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
Functionmain
()
examples/createdtimestamps/main.go:27
Functionmain
()
examples/exemplars/main.go:31
Functionmain
()
tutorials/whatsup/main.go:42
Functionmain
()
tutorials/whatsup/reference/main.go:45
FunctionmakeBuckets
(buckets *sync.Map)
prometheus/histogram.go:1482
Methodobserve
observe manages the parts of observe that only affects histogramCounts. doSparse is true if sparse buckets should be done, too.
prometheus/histogram.go:659
MethodprocessCollect
(ch chan<- Metric)
prometheus/process_collector_not_supported.go:22
MethodprocessCollect
(ch chan<- Metric)
prometheus/process_collector_windows.go:85
MethodprocessCollect
(ch chan<- Metric)
prometheus/process_collector_procfsenabled.go:27
Methodreset
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
FunctionunmarshalSampleStreamJSON
(ptr unsafe.Pointer, iter *jsoniter.Iterator)
api/prometheus/v1/api_126.go:120
FunctionwithAllMetrics
()
prometheus/collectors/go_collector_go127_test.go:18
FunctionwithAllMetrics
()
prometheus/collectors/go_collector_go125_test.go:18
FunctionwithDebugMetrics
()
prometheus/collectors/go_collector_go127_test.go:198
← previousnext →1,201–1,300 of 1,307, ranked by callers