MCPcopy Create free account

hub / github.com/prometheus/client_golang / functions

Functions1,308 in github.com/prometheus/client_golang

↓ 1 callersMethodchainB
()
prometheus/internal/difflib.go:154
↓ 1 callersFunctioncheckDescConsistency
( metricFamily *dto.MetricFamily, dtoMetric *dto.Metric, desc *Desc, )
prometheus/registry.go:998
↓ 1 callersMethodclient
()
api/client.go:65
↓ 1 callersFunctioncompare
compare encodes both provided slices of metric families into the text format, compares their string message, and returns an error if they do not match
prometheus/testutil/testutil.go:303
↓ 1 callersFunctioncompareNativeExemplarValues
(t *testing.T, exps []*dto.Exemplar, values []float64)
prometheus/histogram_test.go:1469
↓ 1 callersMethodcompile
()
prometheus/labels.go:57
↓ 1 callersFunctioncompressPayload
(tmpbuf *[]byte, enc Compression, inp []byte)
exp/api/remote/remote_api.go:321
↓ 1 callersFunctioncomputeApproximateRequestSize
(r *http.Request)
prometheus/promhttp/instrument_server.go:421
↓ 1 callersFunctioncomputeMetricsList
(descs []metrics.Description)
prometheus/collectors/gen_go_collector_set.go:141
↓ 1 callersFunctioncontentTypeHeader
ContentTypeHeader returns content type header value for the given proto message or empty string for unknown proto message.
exp/api/remote/remote_headers.go:92
↓ 1 callersFunctionconvertToExternal
(endpoint string)
tutorials/whatsup/internal/playground_test.go:87
↓ 1 callersFunctiondecreaseCounter
(c *counter)
prometheus/counter_test.go:81
↓ 1 callersMethoddeleteByHashWithLabelValues
deleteByHashWithLabelValues removes the metric from the hash bucket h. If there are multiple matches in the bucket, use lvs to select a metric and rem
prometheus/vec.go:357
↓ 1 callersMethoddeleteByHashWithLabels
deleteByHashWithLabels removes the metric from the hash bucket h. If there are multiple matches in the bucket, use lvs to select a metric and remove o
prometheus/vec.go:386
↓ 1 callersMethoddeleteByLabels
deleteByLabels deletes a metric if the given labels are present in the metric.
prometheus/vec.go:412
↓ 1 callersMethoddoubleBucketWidth
doubleBucketWidth doubles the bucket width (by decrementing the schema number). Note that very sparse buckets could lead to a low reduction of the buc
prometheus/histogram.go:1091
↓ 1 callersFunctionencodeComponent
encodeComponent encodes the provided string with base64.RawURLEncoding in case it contains '/' and as "=" in case it is empty. If neither is the case,
prometheus/push/push.go:348
↓ 1 callersMethoderrorCollectFn
(ch chan<- Metric)
prometheus/process_collector.go:135
↓ 1 callersMethoderrorDescribeFn
(ch chan<- *Desc)
prometheus/process_collector.go:139
↓ 1 callersFunctionerrorTypeAndMsgFor
(resp *http.Response)
api/prometheus/v1/api.go:1489
↓ 1 callersMethodexactSumFor
exactSumFor takes a runtime/metrics metric name (that is assumed to be of kind KindFloat64Histogram) and returns its exact sum and whether its exact s
prometheus/go_collector_latest.go:414
↓ 1 callersFunctionexpectQuality
(s string)
internal/github.com/golang/gddo/httputil/header/header.go:117
↓ 1 callersFunctionexpectTokenSlash
(s string)
internal/github.com/golang/gddo/httputil/header/header.go:106
↓ 1 callersFunctionexpectedBaseMetrics
()
prometheus/go_collector_latest_test.go:50
↓ 1 callersFunctionextractLabelValues
(desc *Desc, labels Labels, curry []curriedLabelValue)
prometheus/vec.go:632
↓ 1 callersFunctionfileTimeToSeconds
(ft windows.Filetime)
prometheus/process_collector_windows.go:138
↓ 1 callersFunctionfile_io_prometheus_write_v2_types_proto_init
()
exp/api/remote/genproto/v2/types.pb.go:1068
↓ 1 callersMethodfindLongestMatch
Find longest matching block in a[alo:ahi] and b[blo:bhi]. If IsJunk is not defined: Return (i,j,k) such that a[i:i+k] is equal to b[j:j+k], where
prometheus/internal/difflib.go:227
↓ 1 callersFunctionfindMetricWithPartialLabels
findMetricWithPartialLabel returns the index of the matching metric or len(metrics) if not found.
prometheus/vec.go:433
↓ 1 callersFunctionfindSmallestKey
(m *sync.Map)
prometheus/histogram.go:1579
↓ 1 callersFunctionformatRangeUnified
Convert range to the "ed" format
prometheus/internal/difflib.go:523
↓ 1 callersFunctiongetExemplarFn
(ctx context.Context)
tutorials/whatsup/main.go:166
↓ 1 callersFunctiongetExemplarFn
(ctx context.Context)
tutorials/whatsup/reference/main.go:221
↓ 1 callersFunctiongetInterfaceIpv4Addr
(interfaceName string)
tutorials/whatsup/internal/common.go:56
↓ 1 callersFunctiongetMemory
()
prometheus/process_collector_mem_cgo_darwin.go:24
↓ 1 callersMethodgetMetricWithHashAndLabelValues
getMetricWithHashAndLabelValues gets a metric while handling possible collisions in the hash space. Must be called while holding the read mutex.
prometheus/vec.go:539
↓ 1 callersMethodgetMetricWithHashAndLabels
getMetricWithHashAndLabels gets a metric while handling possible collisions in the hash space. Must be called while holding read mutex.
prometheus/vec.go:553
↓ 1 callersFunctiongetOpenFileCount
()
prometheus/process_collector_darwin.go:51
↓ 1 callersMethodgetOrCreateMetricWithLabelValues
getOrCreateMetricWithLabelValues retrieves the metric by hash and label value or creates it and returns the new one. This function holds the mutex.
prometheus/vec.go:491
↓ 1 callersMethodgetOrCreateMetricWithLabels
getOrCreateMetricWithLabels retrieves the metric by hash and label value or creates it and returns the new one. This function holds the mutex.
prometheus/vec.go:516
↓ 1 callersFunctiongetProcessHandleCount
(handle windows.Handle)
prometheus/process_collector_windows.go:72
↓ 1 callersFunctiongetProcessMemoryInfo
(handle windows.Handle)
prometheus/process_collector_windows.go:58
↓ 1 callersFunctiongetRuntimeNumThreads
getRuntimeNumThreads returns the number of open OS threads.
prometheus/num_threads.go:22
↓ 1 callersFunctiongetSoftLimit
(which int)
prometheus/process_collector_darwin.go:41
↓ 1 callersFunctiongroupMetrics
(metricsList []string)
prometheus/collectors/gen_go_collector_set.go:159
↓ 1 callersFunctionhttpError
httpError removes any content-encoding header and then calls http.Error with the provided error and http.StatusInternalServerError. Error contents is
prometheus/promhttp/http.go:631
↓ 1 callersFunctionindexOf
indexOf searches the given slice of strings for the target string and returns the index or len(items) as well as a boolean whether the search succeede
prometheus/vec.go:446
↓ 1 callersFunctioninlineLabelValues
(lvs []string, curry []curriedLabelValue)
prometheus/vec.go:646
↓ 1 callersFunctioninstrumentHandlerFunc
(tracer *tracing.Tracer, _ prometheus.Registerer, handlerName string, handler http.Handler)
tutorials/whatsup/main.go:173
↓ 1 callersFunctioninstrumentHandlerFunc
(tracer *tracing.Tracer, reg prometheus.Registerer, handlerName string, handler http.Handler)
tutorials/whatsup/reference/main.go:228
↓ 1 callersFunctioninstrumentRoundTripper
(_ prometheus.Registerer, clientName string, rt http.RoundTripper)
tutorials/whatsup/main.go:181
↓ 1 callersFunctioninstrumentRoundTripper
(reg prometheus.Registerer, clientName string, rt http.RoundTripper)
tutorials/whatsup/reference/main.go:283
↓ 1 callersMethodisBJunk
(s string)
prometheus/internal/difflib.go:195
↓ 1 callersFunctionisLabelCurried
(c prometheus.Collector, label string)
prometheus/promhttp/instrument_server.go:384
↓ 1 callersFunctionisWSL
()
tutorials/whatsup/internal/common.go:43
↓ 1 callersMethodlabelNames
()
prometheus/labels.go:58
↓ 1 callersMethodlimitBuckets
limitBuckets applies a strategy to limit the number of populated sparse buckets. It's generally best effort, and there are situations where the number
prometheus/histogram.go:923
↓ 1 callersMethodlint
lint is the entry point for linting a single metric.
prometheus/testutil/promlint/promlint.go:102
↓ 1 callersFunctionmakeBuckets
(buckets *sync.Map)
prometheus/histogram.go:1482
↓ 1 callersFunctionmakeNativeExemplars
(ttl time.Duration, maxCount int)
prometheus/histogram.go:1701
↓ 1 callersFunctionmarshalHistogram
marshalHistogram writes something like: { "count": "42", "sum": "34593.34", "buckets": [ [ 3, "-0.25", "0.25", "3"], [
api/prometheus/v1/api.go:329
↓ 1 callersFunctionmarshalHistogramBucket
marshalHistogramBucket writes something like: [ 3, "-0.25", "0.25", "3"] See marshalHistogram to understand what the numbers mean
api/prometheus/v1/api.go:294
↓ 1 callersFunctionmarshalSampleHistogramPairJSON
(ptr unsafe.Pointer, stream *json.Stream)
api/prometheus/v1/api.go:137
↓ 1 callersFunctionmarshalSamplePairJSON
(ptr unsafe.Pointer, stream *json.Stream)
api/prometheus/v1/api.go:75
↓ 1 callersFunctionmatchLabelValues
(values, lvs []string, curry []curriedLabelValue)
prometheus/vec.go:591
↓ 1 callersFunctionmatchLabels
(desc *Desc, values []string, labels Labels, curry []curriedLabelValue)
prometheus/vec.go:612
↓ 1 callersFunctionmatchPartialLabels
matchPartialLabels searches the current metric and returns whether all of the target label:value pairs are present.
prometheus/vec.go:470
↓ 1 callersFunctionmatchRuntimeMetricsRules
(rules []internal.GoCollectorRule)
prometheus/go_collector_latest.go:126
↓ 1 callersFunctionmaxInt
(a, b int)
prometheus/internal/difflib.go:36
↓ 1 callersMethodmaybeReset
maybeReset resets the whole histogram if at least h.nativeHistogramMinResetDuration has been passed. It returns true if the histogram has been reset.
prometheus/histogram.go:967
↓ 1 callersMethodmaybeRotateStreams
rotateStreams needs mtx AND bufMtx locked.
prometheus/summary.go:387
↓ 1 callersMethodmaybeWidenZeroBucket
maybeWidenZeroBucket widens the zero bucket until it includes the existing buckets closest to the zero bucket (which could be two, if an equidistant n
prometheus/histogram.go:1021
↓ 1 callersFunctionmemstatNamespace
(s string)
prometheus/go_collector.go:264
↓ 1 callersFunctionmetricUnits
metricUnits attempts to detect known unit types used as part of a metric name, e.g. "foo_bytes_total" or "bar_baz_milligrams".
prometheus/testutil/promlint/validations/units.go:100
↓ 1 callersFunctionnewBatchHistogram
newBatchHistogram creates a new batch histogram value with the given Desc, buckets, and whether or not it has an exact sum available. buckets must al
prometheus/go_collector_latest.go:497
↓ 1 callersFunctionnewMockGraphite
(port string)
prometheus/graphite/bridge_test.go:408
↓ 1 callersFunctionnewNativeHistogramWithClassicBuckets
newNativeHistogramWithClassicBuckets returns a Metric representing a native histogram that also has classic buckets. This is for testing purposes.
prometheus/metric_test.go:299
↓ 1 callersFunctionnewProblem
newProblem is helper function to create a Problem.
prometheus/testutil/promlint/problem.go:28
↓ 1 callersMethodnewStream
()
prometheus/summary.go:368
↓ 1 callersFunctionnewThirdPartyLibFoo
(reg prometheus.Registerer)
prometheus/examples_test.go:864
↓ 1 callersFunctionparseWriteResponseStats
parseWriteResponseStats returns WriteResponseStats parsed from the response headers. As per 2.0 spec, missing header means 0. However, abrupt HTTP er
exp/api/remote/remote_headers.go:197
↓ 1 callersFunctionperformBackup
()
prometheus/push/example_add_from_gatherer_test.go:43
↓ 1 callersFunctionpickSchema
pickSchema returns the largest number n between -4 and 8 such that 2^(2^-n) is less or equal the provided bucketFactor. Special cases: - bucketFactor
prometheus/histogram.go:1467
↓ 1 callersFunctionprocessMetric
processMetric is an internal helper method only used by the Gather method.
prometheus/registry.go:664
↓ 1 callersFunctionprometheusConfig
(jobToScrapeTargetAddress map[string]string)
tutorials/whatsup/internal/playground_test.go:96
↓ 1 callersFunctionreBucketExp
reBucketExp takes a list of bucket boundaries (lower bound inclusive) and downsamples the buckets to those a multiple of base apart. The end result is
prometheus/internal/go_runtime_metrics.go:111
↓ 1 callersFunctionreadCompressedBody
(r io.Reader, comp Compression)
prometheus/promhttp/http_test.go:86
↓ 1 callersMethodreleaseFunc
releaseFunc returns the done callback for one caller sharing cy. When the last caller releases, the underlying done is invoked and the cycle is cleare
prometheus/promhttp/http.go:174
↓ 1 callersFunctionrequireEqual
(t testing.TB, expected, got any)
exp/api/remote/genproto/v2/symbols_test.go:39
↓ 1 callersFunctionrm2prom
(d metrics.Description)
prometheus/collectors/gen_go_collector_set.go:151
↓ 1 callersFunctionrmCardinality
()
prometheus/gen_go_collector_metrics_set.go:117
↓ 1 callersFunctionrun
()
prometheus/example_timer_gauge_test.go:32
↓ 1 callersFunctionrunMain
(opts internal.Config)
tutorials/whatsup/main.go:54
↓ 1 callersFunctionrunMain
(opts internal.Config)
tutorials/whatsup/reference/main.go:57
↓ 1 callersFunctionsafeCollect
Helper wrapper around Collector.Collect. It tries to collect from the channel, recovers on panic and if it has recovered from a panic, then it sends a
prometheus/registry.go:602
↓ 1 callersFunctionsanitizeCode
If the wrapped http.Handler has not set a status code, i.e. the value is currently 0, sanitizeCode will return 200, for consistency with behavior in t
prometheus/promhttp/instrument_server.go:485
↓ 1 callersFunctionsanitizeMethod
If the wrapped http.Handler has a known method, it will be sanitized and returned. Otherwise, "unknown" will be returned. The known method list can be
prometheus/promhttp/instrument_server.go:448
↓ 1 callersFunctionskipSpace
(s string)
internal/github.com/golang/gddo/httputil/header/header.go:96
↓ 1 callersFunctionstartFireKeeper
(reg prometheus.Registerer)
examples/customlabels/main.go:54
↓ 1 callersFunctionstartSparkForge
(reg prometheus.Registerer)
examples/customlabels/main.go:82
← previousnext →501–600 of 1,308, ranked by callers