MCPcopy Create free account

hub / github.com/prometheus/client_golang / functions

Functions932 in github.com/prometheus/client_golang

↓ 1 callersFunctiongetProcessMemoryInfo
(handle windows.Handle)
prometheus/process_collector_windows.go:54
↓ 1 callersFunctiongetRuntimeNumThreads
getRuntimeNumThreads returns the number of open OS threads.
prometheus/num_threads.go:22
↓ 1 callersFunctiongzipAccepted
gzipAccepted returns whether the client will accept gzip-encoded content.
prometheus/promhttp/http.go:385
↓ 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:401
↓ 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:444
↓ 1 callersFunctioninlineLabelValues
(lvs []string, curry []curriedLabelValue)
prometheus/vec.go:644
↓ 1 callersFunctioninstrumentHandlerFunc
(tracer *tracing.Tracer, _ prometheus.Registerer, handlerName string, handler http.Handler)
tutorial/whatsup/main.go:173
↓ 1 callersFunctioninstrumentHandlerFunc
(tracer *tracing.Tracer, reg prometheus.Registerer, handlerName string, handler http.Handler)
tutorial/whatsup/reference/main.go:228
↓ 1 callersFunctioninstrumentRoundTripper
(_ prometheus.Registerer, clientName string, rt http.RoundTripper)
tutorial/whatsup/main.go:181
↓ 1 callersFunctioninstrumentRoundTripper
(reg prometheus.Registerer, clientName string, rt http.RoundTripper)
tutorial/whatsup/reference/main.go:283
↓ 1 callersMethodisBJunk
(s string)
prometheus/internal/difflib.go:194
↓ 1 callersFunctionisLabelCurried
(c prometheus.Collector, label string)
prometheus/promhttp/instrument_server.go:372
↓ 1 callersFunctionisWSL
()
tutorial/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:864
↓ 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:1374
↓ 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:589
↓ 1 callersFunctionmatchLabels
(desc *Desc, values []string, labels Labels, curry []curriedLabelValue)
prometheus/vec.go:610
↓ 1 callersFunctionmatchPartialLabels
matchPartialLabels searches the current metric and returns whether all of the target label:value pairs are present.
prometheus/vec.go:468
↓ 1 callersFunctionmatchRuntimeMetricsRules
(rules []internal.GoCollectorRule)
prometheus/go_collector_latest.go:125
↓ 1 callersFunctionmax
(a, b int)
prometheus/internal/difflib.go:35
↓ 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:908
↓ 1 callersMethodmaybeRotateStreams
rotateStreams needs mtx AND bufMtx locked.
prometheus/summary.go:380
↓ 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:962
↓ 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 callersMethodmsCollect
(ch chan<- Metric, ms *runtime.MemStats)
prometheus/go_collector_go116.go:118
↓ 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:478
↓ 1 callersFunctionnewMockGraphite
(port string)
prometheus/graphite/bridge_test.go:407
↓ 1 callersFunctionnewProblem
newProblem is helper function to create a Problem.
prometheus/testutil/promlint/problem.go:28
↓ 1 callersMethodnewStream
()
prometheus/summary.go:361
↓ 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:1359
↓ 1 callersFunctionprocessMetric
processMetric is an internal helper method only used by the Gather method.
prometheus/registry.go:619
↓ 1 callersFunctionprometheusConfig
(jobToScrapeTargetAddress map[string]string)
tutorial/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:110
↓ 1 callersFunctionreplaceInvalidRune
(c rune)
prometheus/graphite/bridge.go:306
↓ 1 callersFunctionrmCardinality
()
prometheus/gen_go_collector_metrics_set.go:104
↓ 1 callersFunctionrun
()
prometheus/example_timer_gauge_test.go:32
↓ 1 callersFunctionrunMain
(opts internal.Config)
tutorial/whatsup/main.go:54
↓ 1 callersFunctionrunMain
(opts internal.Config)
tutorial/whatsup/reference/main.go:57
↓ 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:473
↓ 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:436
↓ 1 callersFunctionstringToLines
(s string)
prometheus/graphite/bridge_test.go:338
↓ 1 callersFunctiontestConstrainedCurryVec
(t *testing.T, vec *CounterVec, constraint func(string) string)
prometheus/vec_test.go:702
↓ 1 callersFunctiontestConstrainedMetricVec
(t *testing.T, vec *GaugeVec, constrain func(string) string)
prometheus/vec_test.go:358
↓ 1 callersFunctiontestToReader
(t *testing.T, useTags bool)
prometheus/graphite/bridge_test.go:250
↓ 1 callersFunctiontestWriteHistogram
(t *testing.T, useTags bool)
prometheus/graphite/bridge_test.go:168
↓ 1 callersFunctiontestWriteSummary
(t *testing.T, useTags bool)
prometheus/graphite/bridge_test.go:72
↓ 1 callersFunctiontoMetricFamilies
(cs ...Collector)
prometheus/wrap_test.go:36
↓ 1 callersFunctiontypeAndKind
typeAndKind returns the type and kind of the given interface{}
prometheus/testutil/testutil.go:336
↓ 1 callersFunctionunmarshalHistogramBucket
(iter *json.Iterator)
api/prometheus/v1/api.go:252
↓ 1 callersFunctionunmarshalSampleHistogramPairJSON
(ptr unsafe.Pointer, iter *json.Iterator)
api/prometheus/v1/api.go:84
↓ 1 callersFunctionunmarshalSamplePairJSON
(ptr unsafe.Pointer, iter *json.Iterator)
api/prometheus/v1/api.go:46
↓ 1 callersMethodunwrapRecursively
()
prometheus/wrap.go:152
↓ 1 callersMethodupdate
update updates the batchHistogram from a runtime/metrics histogram. sum must be provided if the batchHistogram was created to have an exact sum. h.bu
prometheus/go_collector_latest.go:502
↓ 1 callersMethodupdateExemplar
(v float64, l Labels)
prometheus/counter.go:172
↓ 1 callersMethodupdateExemplar
updateExemplar replaces the exemplar for the provided bucket. With empty labels, it's a no-op. It panics if any of the labels is invalid.
prometheus/histogram.go:1096
↓ 1 callersMethodvalidate
()
api/client.go:69
↓ 1 callersFunctionvalidateValuesInLabels
(labels Labels, expectedNumberOfValues int)
prometheus/labels.go:148
↓ 1 callersFunctionvalueMatchesVariableOrCurriedValue
valueMatchesVariableOrCurriedValue determines if a value was previously curried, and returns whether it matches either the "base" value or the curried
prometheus/vec.go:456
↓ 1 callersFunctionwhatsUpHandler
whatsUpHandler returns all services that currently monitored by Prometheus. It uses prometheus client_golang client code to request PromQL query again
tutorial/whatsup/main.go:124
↓ 1 callersFunctionwhatsUpHandler
whatsUpHandler returns all services that currently monitored by Prometheus. It uses prometheus client_golang client code to request PromQL query again
tutorial/whatsup/reference/main.go:169
↓ 1 callersFunctionwithAllMetrics
()
prometheus/collectors/go_collector_go121_test.go:19
↓ 1 callersFunctionwithGCMetrics
()
prometheus/collectors/go_collector_go121_test.go:94
↓ 1 callersFunctionwithMemoryMetrics
()
prometheus/collectors/go_collector_go121_test.go:121
↓ 1 callersFunctionwithSchedulerMetrics
()
prometheus/collectors/go_collector_go121_test.go:140
↓ 1 callersFunctionwriteLabels
(buf *bufio.Writer, m model.Metric, numLabels int)
prometheus/graphite/bridge.go:265
↓ 1 callersFunctionwriteMetric
(buf *bufio.Writer, m model.Metric, useTags bool)
prometheus/graphite/bridge.go:224
↓ 1 callersFunctionwriteTags
(buf *bufio.Writer, m model.Metric)
prometheus/graphite/bridge.go:249
MethodAdd
Add works like push, but only previously pushed metrics with the same name (and the same job and other grouping labels) will be replaced. (It uses HTT
prometheus/push/push.go:139
MethodAddContext
AddContext is like Add but includes a context. If the context expires before HTTP request is complete, an error is returned.
prometheus/push/push.go:146
MethodAddWithExemplar
(v float64, e Labels)
prometheus/counter.go:146
MethodAlertManagers
AlertManagers returns an overview of the current state of the Prometheus alert manager discovery.
api/prometheus/v1/api.go:468
MethodAlerts
Alerts returns a list of all active alerts.
api/prometheus/v1/api.go:466
MethodAlerts
(ctx context.Context)
api/prometheus/v1/api.go:881
MethodBasicAuth
BasicAuth configures the Pusher to use HTTP Basic Authentication with the provided username and password. For convenience, this method returns a point
prometheus/push/push.go:215
FunctionBenchmarkClient
(b *testing.B)
api/client_test.go:131
FunctionBenchmarkCounter
(b *testing.B)
prometheus/benchmark_test.go:21
FunctionBenchmarkCounterNoLabels
(b *testing.B)
prometheus/benchmark_test.go:135
FunctionBenchmarkCounterWithLabelValuesConcurrent
(b *testing.B)
prometheus/benchmark_test.go:112
FunctionBenchmarkGaugeNoLabels
(b *testing.B)
prometheus/benchmark_test.go:162
FunctionBenchmarkGaugeWithLabelValues
(b *testing.B)
prometheus/benchmark_test.go:147
FunctionBenchmarkGoCollector
(b *testing.B)
prometheus/go_collector_test.go:158
FunctionBenchmarkHandler
(b *testing.B)
prometheus/registry_test.go:748
FunctionBenchmarkHistogramNoLabels
(b *testing.B)
prometheus/benchmark_test.go:219
FunctionBenchmarkHistogramObserve1
(b *testing.B)
prometheus/histogram_test.go:63
FunctionBenchmarkHistogramObserve2
(b *testing.B)
prometheus/histogram_test.go:67
FunctionBenchmarkHistogramObserve4
(b *testing.B)
prometheus/histogram_test.go:71
FunctionBenchmarkHistogramObserve8
(b *testing.B)
prometheus/histogram_test.go:75
FunctionBenchmarkHistogramWithLabelValues
(b *testing.B)
prometheus/benchmark_test.go:204
FunctionBenchmarkHistogramWrite1
(b *testing.B)
prometheus/histogram_test.go:113
FunctionBenchmarkHistogramWrite2
(b *testing.B)
prometheus/histogram_test.go:117
FunctionBenchmarkHistogramWrite4
(b *testing.B)
prometheus/histogram_test.go:121
FunctionBenchmarkHistogramWrite8
(b *testing.B)
prometheus/histogram_test.go:125
FunctionBenchmarkMetricVecWithBasic
(b *testing.B)
prometheus/vec_test.go:907
← previousnext →401–500 of 932, ranked by callers