MCPcopy Create free account

hub / github.com/prometheus/client_golang / functions

Functions1,308 in github.com/prometheus/client_golang

↓ 2 callersFunctionconstrainLabelValues
(desc *Desc, lvs []string, curry []curriedLabelValue)
prometheus/vec.go:686
↓ 2 callersFunctionconvertReaderToMetricFamily
convertReaderToMetricFamily would read from a io.Reader object and convert it to a slice of dto.MetricFamily.
prometheus/testutil/testutil.go:264
↓ 2 callersFunctiondeleteSyncMap
(m *sync.Map)
prometheus/histogram.go:1572
↓ 2 callersFunctionexpectPanic
(t *testing.T, op func(), errorMsg string)
prometheus/counter_test.go:136
↓ 2 callersFunctionfindMetricWithLabelValues
findMetricWithLabelValues returns the index of the matching metric or len(metrics) if not found.
prometheus/vec.go:567
↓ 2 callersFunctionfindMetricWithLabels
findMetricWithLabels returns the index of the matching metric or len(metrics) if not found.
prometheus/vec.go:580
↓ 2 callersMethodflushColdBuf
flushColdBuf needs mtx locked.
prometheus/summary.go:400
↓ 2 callersMethodfullURL
fullURL assembles the URL used to push/delete metrics and returns it as a string. The job name and any grouping label values containing a '/' will tri
prometheus/push/push.go:328
↓ 2 callersFunctiongenerateData
(timeseries, datapoints int)
api/prometheus/v1/api_bench_test.go:26
↓ 2 callersMethodget
()
prometheus/counter.go:156
↓ 2 callersFunctiongetBounds
(vars []float64, q, ε float64)
prometheus/summary_test.go:410
↓ 2 callersFunctiongetCumulativeCounts
(vars []float64)
prometheus/histogram_test.go:331
↓ 2 callersFunctiongetLe
(key int, schema int32)
prometheus/histogram.go:1591
↓ 2 callersFunctiongoRuntimeMemStats
goRuntimeMemStats provides the metrics initially provided by runtime.ReadMemStats. From Go 1.17 those similar (and better) statistics are provided by
prometheus/go_collector.go:26
↓ 2 callersMethodhashLabelValues
(vals []string)
prometheus/vec.go:252
↓ 2 callersMethodhashLabels
(labels Labels)
prometheus/vec.go:275
↓ 2 callersFunctionhashNew
hashNew initializies a new fnv64a hash value.
prometheus/fnv.go:24
↓ 2 callersMethodinflightRefs
inflightRefs reports how many callers currently share the in-flight cycle. It lives in the test file so production code carries no test-only hooks; te
prometheus/promhttp/http_test.go:1061
↓ 2 callersMethodisEnabled
()
prometheus/histogram.go:1697
↓ 2 callersFunctionlabelsToLabelPair
(l prometheus.Labels)
prometheus/promhttp/instrument_client_test.go:107
↓ 2 callersFunctionlistenGaugeStream
(vals, result chan float64, done chan struct{})
prometheus/gauge_test.go:28
↓ 2 callersFunctionmakeBucketsFromMap
(buckets map[int]int64)
prometheus/histogram.go:2011
↓ 2 callersFunctionmakeInstrumentedHandler
(handler http.HandlerFunc, opts ...Option)
prometheus/promhttp/instrument_server_test.go:361
↓ 2 callersFunctionmarshalTimestamp
(timestamp model.Time, stream *json.Stream)
api/prometheus/v1/api.go:230
↓ 2 callersFunctionmemStatsFromRM
(ms *runtime.MemStats, rm map[string]*metrics.Sample)
prometheus/go_collector_latest.go:426
↓ 2 callersFunctionminInt
(a, b int)
prometheus/internal/difflib.go:29
↓ 2 callersFunctionnegotiateEncodingWriter
negotiateEncodingWriter reads the Accept-Encoding header from a request and selects the right compression based on an allow-list of supported compress
prometheus/promhttp/http.go:644
↓ 2 callersFunctionnewBaseGoCollector
()
prometheus/go_collector.go:209
↓ 2 callersFunctionnewHistogram
(desc *Desc, opts HistogramOpts, labelValues ...string)
prometheus/histogram.go:539
↓ 2 callersFunctionnewSummary
(desc *Desc, opts SummaryOpts, labelValues ...string)
prometheus/summary.go:198
↓ 2 callersFunctionreplaceInvalidRune
(c rune)
prometheus/graphite/bridge.go:306
↓ 2 callersMethodresetCounts
(counts *histogramCounts)
prometheus/histogram.go:1139
↓ 2 callersFunctionretryAfterDuration
retryAfterDuration returns the duration for the Retry-After header. In case of any errors, it returns 0 as if the header was never supplied.
exp/api/remote/remote_api.go:392
↓ 2 callersMethodroundTripper
()
api/client.go:58
↓ 2 callersFunctionstats
(req *writev2.Request)
exp/api/remote/remote_api_test.go:176
↓ 2 callersMethodswapBufs
swapBufs needs mtx AND bufMtx locked, coldBuf must be empty.
prometheus/summary.go:413
↓ 2 callersFunctiontestDeletePartialMatch
(t *testing.T, baseVec *GaugeVec)
prometheus/vec_test.go:184
↓ 2 callersFunctiontestHandler
(t testing.TB)
prometheus/registry_test.go:56
↓ 2 callersFunctiontestMetricVec
(t *testing.T, vec *GaugeVec)
prometheus/vec_test.go:287
↓ 2 callersFunctiontestV2
()
exp/api/remote/remote_api_test.go:146
↓ 2 callersFunctiontoMetricFamilies
(cs ...Collector)
prometheus/wrap_test.go:36
↓ 2 callersFunctionunwrapScalarRMValue
unwrapScalarRMValue unwraps a runtime/metrics value that is assumed to be scalar and returns the equivalent float64 value. Panics if the value is not
prometheus/go_collector_latest.go:387
↓ 2 callersFunctionvalidateCount
(sum float64, count uint64, negativeBuckets, positiveBuckets map[int]int64, zeroBucket uint64)
prometheus/histogram.go:1876
↓ 2 callersFunctionwhatsupAddr
(defAddress string)
tutorials/whatsup/internal/common.go:84
↓ 2 callersFunctionwithDefaultRuntimeMetrics
(metricNames []string, withoutGC, withoutSched bool)
prometheus/collectors/go_collector_latest_test.go:65
↓ 2 callersFunctionwrapDesc
(desc *Desc, prefix string, labels Labels)
prometheus/wrap.go:223
↓ 2 callersMethodwriteHeaders
writeHeaders sets response headers in a given response writer. Make sure to use it before http.ResponseWriter.WriteHeader and .Write.
exp/api/remote/remote_headers.go:135
↓ 1 callersMethodAbbr
()
prometheus/gen_go_collector_metrics_set.go:113
↓ 1 callersMethodAbbr
()
prometheus/collectors/gen_go_collector_set.go:185
↓ 1 callersMethodAdd
(v float64)
prometheus/counter.go:127
↓ 1 callersMethodAdd
Add adds the given WriteResponseStats to this WriteResponseStats. If this WriteResponseStats is empty, it will be replaced by the given WriteResponseS
exp/api/remote/remote_headers.go:182
↓ 1 callersMethodAddCustomValidations
AddCustomValidations adds custom validations to the linter.
prometheus/testutil/promlint/promlint.go:57
↓ 1 callersMethodAlertManagers
(ctx context.Context)
api/prometheus/v1/api.go:939
↓ 1 callersFunctionAlmostEqualFloat64
AlmostEqualFloat64 returns true if a and b are equal within a relative error of epsilon. See http://floating-point-gui.de/errors/comparison/ for the d
prometheus/internal/almost_equal.go:36
↓ 1 callersFunctionAlmostEqualFloat64s
AlmostEqualFloat64s is the slice form of AlmostEqualFloat64.
prometheus/internal/almost_equal.go:50
↓ 1 callersMethodBuildinfo
(ctx context.Context)
api/prometheus/v1/api.go:1031
↓ 1 callersMethodCleanTombstones
(ctx context.Context)
api/prometheus/v1/api.go:957
↓ 1 callersMethodCloseIdleConnections
()
api/client.go:88
↓ 1 callersMethodCloseNotify
()
prometheus/promhttp/instrument_server_test.go:562
↓ 1 callersFunctionCollectAndCount
CollectAndCount registers the provided Collector with a newly created pedantic Registry. It then calls GatherAndCount with that Registry and with the
prometheus/testutil/testutil.go:128
↓ 1 callersFunctionCollectAndFormat
CollectAndFormat collects the metrics identified by `metricNames` and returns them in the given format.
prometheus/testutil/testutil.go:238
↓ 1 callersMethodConfig
(ctx context.Context)
api/prometheus/v1/api.go:969
↓ 1 callersMethodCurryWith
CurryWith returns a vector curried with the provided labels, i.e. the returned vector has those labels pre-set for all labeled operations performed on
prometheus/counter.go:316
↓ 1 callersMethodCurryWith
(labels prometheus.Labels)
prometheus/example_metricvec_test.go:93
↓ 1 callersMethodCurryWith
CurryWith returns a vector curried with the provided labels, i.e. the returned vector has those labels pre-set for all labeled operations performed on
prometheus/histogram.go:1296
↓ 1 callersMethodCurryWith
CurryWith returns a vector curried with the provided labels, i.e. the returned vector has those labels pre-set for all labeled operations performed on
prometheus/summary.go:684
↓ 1 callersMethodCurryWith
CurryWith returns a vector curried with the provided labels, i.e. the returned vector has those labels pre-set for all labeled operations performed on
prometheus/gauge.go:270
↓ 1 callersMethodDelete
Delete sends a “DELETE” request to the Pushgateway configured while creating this Pusher, using the configured job name and any added grouping labels
prometheus/push/push.go:239
↓ 1 callersMethodDeletePartialMatch
DeletePartialMatch deletes all metrics where the variable labels contain all of those passed in as labels. The order of the labels does not matter. It
prometheus/vec.go:113
↓ 1 callersMethodDeleteSeries
(ctx context.Context, matches []string, startTime, endTime time.Time)
api/prometheus/v1/api.go:987
↓ 1 callersMethodDescriptor
()
exp/api/remote/genproto/v2/types.pb.go:86
↓ 1 callersMethodDescriptor
()
exp/api/remote/genproto/v2/types.pb.go:138
↓ 1 callersFunctionDesymbolizeLabels
DesymbolizeLabels decodes label references, with given symbols to labels.
exp/api/remote/genproto/v2/symbols.go:91
↓ 1 callersMethodDo
(_ context.Context, req *http.Request)
api/prometheus/v1/api_test.go:65
↓ 1 callersMethodDoGetFallback
DoGetFallback will attempt to do the request as-is, and on a 403, 405, or 501 it will fallback to a GET request.
api/prometheus/v1/api.go:1550
↓ 1 callersFunctionExponentialBucketsRange
ExponentialBucketsRange creates 'count' buckets, where the lowest bucket is 'min' and the highest bucket is 'max'. The final +Inf bucket is not counte
prometheus/histogram.go:339
↓ 1 callersMethodFlags
(ctx context.Context)
api/prometheus/v1/api.go:1013
↓ 1 callersMethodFlush
()
prometheus/promhttp/instrument_server_test.go:580
↓ 1 callersMethodFormat
Format configures the Pusher to use an encoding format given by the provided expfmt.Format. The default format is expfmt.FmtProtoDelim and should be u
prometheus/push/push.go:227
↓ 1 callersMethodFormatQuery
(ctx context.Context, query string)
api/prometheus/v1/api.go:1448
↓ 1 callersMethodGather
Gather implements Gatherer.
prometheus/registry.go:793
↓ 1 callersMethodGather
Gather implements TransactionalGatherer interface.
prometheus/registry.go:1058
↓ 1 callersFunctionGatherAndCount
GatherAndCount gathers all metrics from the provided Gatherer and counts them. It returns the number of metric children in all gathered metric familie
prometheus/testutil/testutil.go:144
↓ 1 callersFunctionGatherAndLint
GatherAndLint gathers all metrics from the provided Gatherer and checks them with the linter in the promlint package. If any metricNames are provided,
prometheus/testutil/lint.go:37
↓ 1 callersMethodGetMetricWith
(labels prometheus.Labels)
prometheus/example_metricvec_test.go:72
↓ 1 callersMethodGetMetricWith
GetMetricWith returns the Histogram for the given Labels map (the label names must match those of the variable labels in Desc). If that label map is a
prometheus/histogram.go:1250
↓ 1 callersMethodGetMetricWith
GetMetricWith returns the Summary for the given Labels map (the label names must match those of the variable labels in Desc). If that label map is acc
prometheus/summary.go:638
↓ 1 callersMethodGetMetricWith
GetMetricWith returns the Gauge for the given Labels map (the label names must match those of the variable labels in Desc). If that label map is acces
prometheus/gauge.go:224
↓ 1 callersMethodGetMetricWithLabelValues
(lvs ...string)
prometheus/example_metricvec_test.go:67
↓ 1 callersMethodGetMetricWithLabelValues
GetMetricWithLabelValues returns the Histogram for the given slice of label values (same order as the variable labels in Desc). If that combination of
prometheus/histogram.go:1230
↓ 1 callersMethodGetMetricWithLabelValues
GetMetricWithLabelValues returns the Summary for the given slice of label values (same order as the variable labels in Desc). If that combination of l
prometheus/summary.go:618
↓ 1 callersMethodGetMetricWithLabelValues
GetMetricWithLabelValues returns the Gauge for the given slice of label values (same order as the variable labels in Desc). If that combination of lab
prometheus/gauge.go:204
↓ 1 callersMethodGetTimestamp
()
exp/api/remote/genproto/v2/types.pb.go:477
↓ 1 callersMethodGetZeroThreshold
()
exp/api/remote/genproto/v2/types.pb.go:711
↓ 1 callersFunctionInstrumentHandlerTimeToWriteHeader
InstrumentHandlerTimeToWriteHeader is a middleware that wraps the provided http.Handler to observe with the provided ObserverVec the request duration
prometheus/promhttp/instrument_server.go:202
↓ 1 callersMethodLabelNames
(ctx context.Context, matches []string, startTime, endTime time.Time, opts ...Option)
api/prometheus/v1/api.go:1067
↓ 1 callersMethodLabelValues
(ctx context.Context, label string, matches []string, startTime, endTime time.Time, opts ...Option)
api/prometheus/v1/api.go:1090
↓ 1 callersMethodMarshalToSizedBuffer
(dAtA []byte)
exp/api/remote/remote_api.go:197
↓ 1 callersMethodMarshalToSizedBufferVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:520
↓ 1 callersMethodMarshalToSizedBufferVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:532
← previousnext →301–400 of 1,308, ranked by callers