MCPcopy Create free account

hub / github.com/prometheus/client_golang / functions

Functions1,308 in github.com/prometheus/client_golang

↓ 1 callersMethodMarshalToSizedBufferVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:545
↓ 1 callersMethodMarshalToSizedBufferVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:557
↓ 1 callersMethodMetadata
(ctx context.Context, metric, limit string)
api/prometheus/v1/api.go:1346
↓ 1 callersMethodMustCurryWith
MustCurryWith works as CurryWith but panics where CurryWith would have returned an error.
prometheus/counter.go:326
↓ 1 callersFunctionMustNewConstHistogramWithCreatedTimestamp
MustNewConstHistogramWithCreatedTimestamp is a version of NewConstHistogramWithCreatedTimestamp that panics where NewConstHistogramWithCreatedTimestam
prometheus/histogram.go:1432
↓ 1 callersFunctionMustNewConstMetricWithCreatedTimestamp
MustNewConstMetricWithCreatedTimestamp is a version of NewConstMetricWithCreatedTimestamp that panics where NewConstMetricWithCreatedTimestamp would h
prometheus/value.go:163
↓ 1 callersFunctionMustNewConstNativeHistogram
MustNewConstNativeHistogram is a version of NewConstNativeHistogram that panics where NewConstNativeHistogram would have returned an error.
prometheus/histogram.go:1974
↓ 1 callersFunctionMustNewConstSummaryWithCreatedTimestamp
MustNewConstSummaryWithCreatedTimestamp is a version of NewConstSummaryWithCreatedTimestamp that panics where NewConstSummaryWithCreatedTimestamp woul
prometheus/summary.go:822
↓ 1 callersFunctionNew
New returns a Middleware interface.
examples/middleware/httpmiddleware/httpmiddleware.go:92
↓ 1 callersFunctionNewAPI
NewAPI returns a new API for the clients of Remote Write Protocol.
exp/api/remote/remote_api.go:134
↓ 1 callersFunctionNewBuildInfoCollector
NewBuildInfoCollector is the obsolete version of collectors.NewBuildInfoCollector. See there for documentation. Deprecated: Use collectors.NewBuildIn
prometheus/build_info_collector.go:22
↓ 1 callersFunctionNewBuildInfoCollector
NewBuildInfoCollector returns a collector collecting a single metric "go_build_info" with the constant value 1 and three labels "path", "version", and
prometheus/collectors/collectors.go:37
↓ 1 callersFunctionNewClusterManager
NewClusterManager first creates a Prometheus-ignorant ClusterManager instance. Then, it creates a ClusterManagerCollector for the just created Cluster
prometheus/example_clustermanager_test.go:113
↓ 1 callersFunctionNewConstHistogram
NewConstHistogram returns a metric representing a Prometheus histogram with fixed values for the count, sum, and bucket counts. As those parameters ca
prometheus/histogram.go:1367
↓ 1 callersFunctionNewConstSummary
NewConstSummary returns a metric representing a Prometheus summary with fixed values for the count, sum, and quantiles. As those parameters cannot be
prometheus/summary.go:757
↓ 1 callersFunctionNewCounterFunc
NewCounterFunc creates a new CounterFunc based on the provided CounterOpts. The value reported is determined by calling the given function from within
prometheus/counter.go:353
↓ 1 callersMethodNewCounterFunc
NewCounterFunc works like the function of the same name in the prometheus package but it automatically registers the CounterFunc with the Factory's Re
prometheus/promauto/auto.go:284
↓ 1 callersFunctionNewDBStatsCollector
NewDBStatsCollector returns a collector that exports metrics about the given *sql.DB. See https://golang.org/pkg/database/sql/#DBStats for more inform
prometheus/collectors/dbstats_collector.go:40
↓ 1 callersMethodNewGaugeVec
NewGaugeVec works like the function of the same name in the prometheus package but it automatically registers the GaugeVec with the Factory's Register
prometheus/promauto/auto.go:305
↓ 1 callersFunctionNewInfoVec
(name, help string, labelNames []string)
prometheus/example_metricvec_test.go:55
↓ 1 callersFunctionNewMatcherWithJunk
(a, b []string, autoJunk bool, isJunk func(string) bool, )
prometheus/internal/difflib.go:109
↓ 1 callersFunctionNewMetrics
(reg prometheus.Registerer, normMean, normDomain float64)
examples/random/main.go:38
↓ 1 callersFunctionNewMultiTRegistry
NewMultiTRegistry creates MultiTRegistry.
prometheus/registry.go:1051
↓ 1 callersFunctionNewPidFileFn
NewPidFileFn returns a function that retrieves a pid from the specified file. It is meant to be used for the PidFn field in ProcessCollectorOpts.
prometheus/process_collector.go:167
↓ 1 callersMethodNewSummary
NewSummary works like the function of the same name in the prometheus package but it automatically registers the Summary with the Factory's Registerer
prometheus/promauto/auto.go:326
↓ 1 callersMethodNewSummaryVec
NewSummaryVec works like the function of the same name in the prometheus package but it automatically registers the SummaryVec with the Factory's Regi
prometheus/promauto/auto.go:337
↓ 1 callersFunctionNewSymbolTable
NewSymbolTable returns a symbol table.
exp/api/remote/genproto/v2/symbols.go:40
↓ 1 callersFunctionNewUntypedFunc
NewUntypedFunc creates a new UntypedFunc based on the provided UntypedOpts. The value reported is determined by calling the given function from within
prometheus/untyped.go:35
↓ 1 callersMethodNewUntypedFunc
NewUntypedFunc works like the function of the same name in the prometheus package but it automatically registers the UntypedFunc with the Factory's Re
prometheus/promauto/auto.go:370
↓ 1 callersFunctionNewWithMetricFamilies
NewWithMetricFamilies creates a new Linter that reads from a slice of MetricFamily protobuf messages.
prometheus/testutil/promlint/promlint.go:50
↓ 1 callersMethodNoDataWritten
NoDataWritten returns true if statistics indicate no data was written.
exp/api/remote/remote_headers.go:171
↓ 1 callersMethodNumRetries
NumRetries returns the number of retries so far.
exp/internal/github.com/efficientgo/core/backoff/backoff.go:68
↓ 1 callersMethodObserveDurationWithExemplar
ObserveDurationWithExemplar is like ObserveDuration, but it will also observe exemplar with the duration unless exemplar is nil or provided Observer c
prometheus/timer.go:70
↓ 1 callersFunctionParseProtoMsg
ParseProtoMsg parses the content-type header and returns the proto message type. The expected content-type will be of the form, - `application/x-prot
exp/api/remote/remote_api.go:544
↓ 1 callersFunctionPointOf
(value T)
prometheus/metric_test.go:293
↓ 1 callersMethodQuery
(ctx context.Context, query string, ts time.Time, opts ...Option)
api/prometheus/v1/api.go:1195
↓ 1 callersMethodQueryExemplars
(ctx context.Context, query string, startTime, endTime time.Time)
api/prometheus/v1/api.go:1426
↓ 1 callersMethodQueryRange
(ctx context.Context, query string, r Range, opts ...Option)
api/prometheus/v1/api.go:1213
↓ 1 callersMethodReadFrom
(re io.Reader)
prometheus/promhttp/delegator.go:111
↓ 1 callersMethodReadFrom
(io.Reader)
prometheus/promhttp/instrument_server_test.go:567
↓ 1 callersMethodReallyExpensiveAssessmentOfTheSystemState
ReallyExpensiveAssessmentOfTheSystemState is a mock for the data gathering a real cluster manager would have to do. Since it may actually be really ex
prometheus/example_clustermanager_test.go:44
↓ 1 callersMethodRegister
(c Collector)
prometheus/wrap.go:121
↓ 1 callersMethodReset
()
exp/api/remote/genproto/v2/types.pb.go:438
↓ 1 callersMethodRetryAfter
()
exp/api/remote/remote_api.go:171
↓ 1 callersMethodRules
(ctx context.Context, matches []string)
api/prometheus/v1/api.go:1278
↓ 1 callersMethodRuntimeinfo
(ctx context.Context)
api/prometheus/v1/api.go:1049
↓ 1 callersMethodSeries
Series finds series by label matchers.
api/prometheus/v1/api.go:494
↓ 1 callersMethodSeries
(ctx context.Context, matches []string, startTime, endTime time.Time, opts ...Option)
api/prometheus/v1/api.go:1231
↓ 1 callersMethodSet
(val float64)
prometheus/gauge.go:107
↓ 1 callersMethodSetExtraHeader
SetExtraHeader adds additional headers to be set in the response (apart from stats headers)
exp/api/remote/remote_headers.go:129
↓ 1 callersMethodSetReadDeadline
(deadline time.Time)
prometheus/promhttp/delegator_test.go:51
↓ 1 callersMethodSetSeq1
Set the first sequence to be compared. The second sequence to be compared is not changed. SequenceMatcher computes and caches detailed information ab
prometheus/internal/difflib.go:132
↓ 1 callersMethodSetSeq2
Set the second sequence to be compared. The first sequence to be compared is not changed.
prometheus/internal/difflib.go:143
↓ 1 callersMethodSetWriteDeadline
(deadline time.Time)
prometheus/promhttp/delegator_test.go:45
↓ 1 callersMethodSize
()
exp/api/remote/remote_api.go:196
↓ 1 callersMethodSizeVT
()
exp/api/remote/genproto/v2/types_vtproto.pb.go:796
↓ 1 callersMethodSizeVT
()
exp/api/remote/genproto/v2/types_vtproto.pb.go:805
↓ 1 callersMethodSizeVT
()
exp/api/remote/genproto/v2/types_vtproto.pb.go:814
↓ 1 callersMethodSizeVT
()
exp/api/remote/genproto/v2/types_vtproto.pb.go:823
↓ 1 callersMethodSnapshot
(ctx context.Context, skipHead bool)
api/prometheus/v1/api.go:1255
↓ 1 callersMethodString
()
prometheus/gen_go_collector_metrics_set.go:109
↓ 1 callersMethodString
()
exp/api/remote/genproto/v2/types.pb.go:379
↓ 1 callersMethodSymbols
Symbols returns computes symbols table to put in e.g. Request.Symbols. As per spec, order does not matter.
exp/api/remote/genproto/v2/symbols.go:74
↓ 1 callersMethodTSDB
(ctx context.Context, opts ...Option)
api/prometheus/v1/api.go:1370
↓ 1 callersMethodTSDBBlocks
(ctx context.Context)
api/prometheus/v1/api.go:1390
↓ 1 callersMethodTargets
(ctx context.Context)
api/prometheus/v1/api.go:1303
↓ 1 callersMethodTargetsMetadata
(ctx context.Context, matchTarget, metric, limit string)
api/prometheus/v1/api.go:1321
↓ 1 callersFunctionToFloat64
ToFloat64 collects all Metrics from the provided Collector. It expects that this results in exactly one Metric being collected, which must be a Gauge,
prometheus/testutil/testutil.go:82
↓ 1 callersFunctionTransactionalGatherAndCompare
TransactionalGatherAndCompare gathers all metrics from the provided Gatherer and compares it to an expected output read from the provided Reader in th
prometheus/testutil/testutil.go:222
↓ 1 callersMethodType
()
exp/api/remote/genproto/v2/types.pb.go:90
↓ 1 callersMethodURL
(ep string, args map[string]string)
api/client.go:116
↓ 1 callersMethodUnwrap
Unwrap lets http.ResponseController get the underlying http.ResponseWriter, by implementing the [rwUnwrapper](https://cs.opensource.google/go/go/+/ref
prometheus/promhttp/delegator.go:81
↓ 1 callersMethodWalReplay
(ctx context.Context)
api/prometheus/v1/api.go:1408
↓ 1 callersMethodWith
With works as GetMetricWith but panics where GetMetricWithLabels would have returned an error. Not returning an error allows shortcuts like myVec.Wi
prometheus/histogram.go:1275
↓ 1 callersMethodWith
With works as GetMetricWith, but panics where GetMetricWithLabels would have returned an error. Not returning an error allows shortcuts like myVec.W
prometheus/summary.go:663
↓ 1 callersFunctionWithAPIBackoff
WithAPIBackoff returns APIOption that allows configuring backoff. By default, exponential backoff with jitter is used (see defaultAPIOpts).
exp/api/remote/remote_api.go:119
↓ 1 callersFunctionWithAPIHTTPClient
WithAPIHTTPClient returns APIOption that allows providing http client.
exp/api/remote/remote_api.go:94
↓ 1 callersFunctionWithAPILogger
WithAPILogger returns APIOption that allows providing slog logger. By default, nothing is logged.
exp/api/remote/remote_api.go:86
↓ 1 callersFunctionWithAPIPath
WithAPIPath returns APIOption that allows providing path to send remote write requests to.
exp/api/remote/remote_api.go:102
↓ 1 callersFunctionWithExtraConstLabels
(l prometheus.Labels)
prometheus/collectors/version/version.go:31
↓ 1 callersFunctionWithExtraMethods
WithExtraMethods adds additional HTTP methods to the list of allowed methods. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods for the de
prometheus/promhttp/option.go:67
↓ 1 callersMethodWithLabelValues
(lvs ...string)
prometheus/example_metricvec_test.go:77
↓ 1 callersFunctionWithWriteRetryCallback
WithWriteRetryCallback sets a retry callback for this Write request. The callback is invoked each time the request is retried.
exp/api/remote/remote_api.go:184
↓ 1 callersFunctionWrapCollectorWithPrefix
WrapCollectorWithPrefix returns a Collector wrapping the provided Collector. The wrapped Collector will add the provided prefix to the name of all Met
prometheus/wrap.go:108
↓ 1 callersMethodWrite
Write writes given, non-empty, protobuf message to a remote storage. Depending on serialization methods, - https://github.com/planetscale/vtprotobuf
exp/api/remote/remote_api.go:209
↓ 1 callersFunctionWriteToTextfile
WriteToTextfile calls Gather on the provided Gatherer, encodes the result in the Prometheus text format, and writes it to a temporary file. Upon succe
prometheus/registry.go:635
↓ 1 callersFunctionWriteUnifiedDiff
Compare two sequences of lines; generate the delta as a unified diff. Unified diffs are a compact way of showing line changes and a few lines of cont
prometheus/internal/difflib.go:567
↓ 1 callersMethodWritten
()
prometheus/promhttp/delegator.go:35
↓ 1 callersFunctionaddAndReset
addAndReset returns a function to be used with sync.Map.Range of spare buckets in coldCounts. It increments the buckets in the provided hotBuckets acc
prometheus/histogram.go:1561
↓ 1 callersMethodaddExemplar
(e *dto.Exemplar)
prometheus/histogram.go:1721
↓ 1 callersFunctionaddExpectedDefaultRuntimeMetrics
(metrics map[string]struct{})
prometheus/go_collector_latest_test.go:79
↓ 1 callersFunctionaddExpectedRuntimeMemStats
(metrics map[string]struct{})
prometheus/go_collector_latest_test.go:65
↓ 1 callersFunctionaddExpectedRuntimeMetrics
(metrics map[string]struct{})
prometheus/go_collector_latest_test.go:72
↓ 1 callersFunctionapiError
(code int)
api/prometheus/v1/api.go:1484
↓ 1 callersMethodasyncFlush
asyncFlush needs bufMtx locked.
prometheus/summary.go:373
↓ 1 callersFunctionatomicDecUint32
atomicDecUint32 atomically decrements the uint32 p points to. See https://pkg.go.dev/sync/atomic#AddUint32 to understand how this is done.
prometheus/histogram.go:1666
↓ 1 callersFunctionattachOriginalName
(desc, origName string)
prometheus/go_collector_latest.go:302
↓ 1 callersMethodattemptWrite
(ctx context.Context, compr Compression, msgType WriteMessageType, payload []byte, attempt int)
exp/api/remote/remote_api.go:337
↓ 1 callersFunctionbenchmarkMetricVecWith
(b *testing.B, labels map[string]string)
prometheus/vec_test.go:959
↓ 1 callersFunctioncanCollectProcess
()
prometheus/process_collector_darwin.go:37
← previousnext →401–500 of 1,308, ranked by callers