Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/client_golang
/ functions
Functions
1,308 in github.com/prometheus/client_golang
⨍
Functions
1,308
◇
Types & classes
274
↓ 1 callers
Function
stringToLines
(s string)
prometheus/graphite/bridge_test.go:339
↓ 1 callers
Function
syncMapToMap
(syncmap *sync.Map)
prometheus/histogram_test.go:1568
↓ 1 callers
Function
testConstrainedCurryVec
(t *testing.T, vec *CounterVec, constraint func(string) string)
prometheus/vec_test.go:703
↓ 1 callers
Function
testConstrainedMetricVec
(t *testing.T, vec *GaugeVec, constrain func(string) string)
prometheus/vec_test.go:359
↓ 1 callers
Function
testToReader
(t *testing.T, useTags bool)
prometheus/graphite/bridge_test.go:251
↓ 1 callers
Function
testWriteHistogram
(t *testing.T, useTags bool)
prometheus/graphite/bridge_test.go:169
↓ 1 callers
Function
testWriteSummary
(t *testing.T, useTags bool)
prometheus/graphite/bridge_test.go:73
↓ 1 callers
Function
unmarshalHistogramBucket
(iter *json.Iterator)
api/prometheus/v1/api.go:252
↓ 1 callers
Function
unmarshalSampleHistogramPairJSON
(ptr unsafe.Pointer, iter *json.Iterator)
api/prometheus/v1/api.go:84
↓ 1 callers
Function
unmarshalSamplePairJSON
(ptr unsafe.Pointer, iter *json.Iterator)
api/prometheus/v1/api.go:46
↓ 1 callers
Method
unwrapRecursively
()
prometheus/wrap.go:186
↓ 1 callers
Method
update
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:521
↓ 1 callers
Method
updateExemplar
(v float64, l Labels)
prometheus/counter.go:173
↓ 1 callers
Method
updateExemplar
updateExemplar replaces the exemplar for the provided classic bucket. With empty labels, it's a no-op. It panics if any of the labels is invalid. If h
prometheus/histogram.go:1157
↓ 1 callers
Method
validate
()
api/client.go:74
↓ 1 callers
Function
validateValuesInLabels
(labels Labels, expectedNumberOfValues int)
prometheus/labels.go:148
↓ 1 callers
Function
valueMatchesVariableOrCurriedValue
valueMatchesVariableOrCurriedValue determines if a value was previously curried, and returns whether it matches either the "base" value or the curried
prometheus/vec.go:458
↓ 1 callers
Function
whatsUpHandler
whatsUpHandler returns all services that currently monitored by Prometheus. It uses prometheus client_golang client code to request PromQL query again
tutorials/whatsup/main.go:124
↓ 1 callers
Function
whatsUpHandler
whatsUpHandler returns all services that currently monitored by Prometheus. It uses prometheus client_golang client code to request PromQL query again
tutorials/whatsup/reference/main.go:169
↓ 1 callers
Function
withAllMetrics
()
prometheus/collectors/go_collector_go124_test.go:19
↓ 1 callers
Function
withDebugMetrics
()
prometheus/collectors/go_collector_go124_test.go:176
↓ 1 callers
Function
withGCMetrics
()
prometheus/collectors/go_collector_go124_test.go:118
↓ 1 callers
Function
withMemoryMetrics
()
prometheus/collectors/go_collector_go124_test.go:145
↓ 1 callers
Function
withSchedulerMetrics
()
prometheus/collectors/go_collector_go124_test.go:164
↓ 1 callers
Function
writeLabels
(buf *bufio.Writer, m model.Metric, numLabels int)
prometheus/graphite/bridge.go:265
↓ 1 callers
Function
writeMetric
(buf *bufio.Writer, m model.Metric, useTags bool)
prometheus/graphite/bridge.go:224
↓ 1 callers
Function
writeTags
(buf *bufio.Writer, m model.Metric)
prometheus/graphite/bridge.go:249
Method
Add
(v float64)
prometheus/promhttp/instrument_server_test.go:504
Method
Add
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
Method
AddContext
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
Method
AddWithExemplar
(v float64, e Labels)
prometheus/counter.go:147
Method
AlertManagers
AlertManagers returns an overview of the current state of the Prometheus alert manager discovery.
api/prometheus/v1/api.go:470
Method
Alerts
Alerts returns a list of all active alerts.
api/prometheus/v1/api.go:468
Method
Alerts
(ctx context.Context)
api/prometheus/v1/api.go:921
Method
AllSamples
AllSamples returns both float and histogram sample numbers.
exp/api/remote/remote_headers.go:176
Method
Append
Appends the provided error to the contained MultiError in a thread-safe way.
prometheus/registry.go:224
Method
BasicAuth
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
Function
BenchmarkClient
(b *testing.B)
api/client_test.go:227
Function
BenchmarkCompression
(b *testing.B)
prometheus/promhttp/http_test.go:683
Function
BenchmarkCounter
(b *testing.B)
prometheus/benchmark_test.go:21
Function
BenchmarkCounterNoLabels
(b *testing.B)
prometheus/benchmark_test.go:135
Function
BenchmarkCounterWithLabelValuesConcurrent
(b *testing.B)
prometheus/benchmark_test.go:112
Function
BenchmarkFindBucketHuge
(b *testing.B)
prometheus/histogram_test.go:1507
Function
BenchmarkFindBucketInf
(b *testing.B)
prometheus/histogram_test.go:1511
Function
BenchmarkFindBucketLarge
(b *testing.B)
prometheus/histogram_test.go:1503
Function
BenchmarkFindBucketLow
(b *testing.B)
prometheus/histogram_test.go:1524
Function
BenchmarkFindBucketMid
(b *testing.B)
prometheus/histogram_test.go:1499
Function
BenchmarkFindBucketShort
(b *testing.B)
prometheus/histogram_test.go:1495
Function
BenchmarkGaugeNoLabels
(b *testing.B)
prometheus/benchmark_test.go:162
Function
BenchmarkGaugeWithLabelValues
(b *testing.B)
prometheus/benchmark_test.go:147
Function
BenchmarkGoCollector
(b *testing.B)
prometheus/go_collector_test.go:158
Function
BenchmarkHandler
(b *testing.B)
prometheus/registry_test.go:751
Function
BenchmarkHistogramNoLabels
(b *testing.B)
prometheus/benchmark_test.go:219
Function
BenchmarkHistogramObserve1
(b *testing.B)
prometheus/histogram_test.go:63
Function
BenchmarkHistogramObserve2
(b *testing.B)
prometheus/histogram_test.go:67
Function
BenchmarkHistogramObserve4
(b *testing.B)
prometheus/histogram_test.go:71
Function
BenchmarkHistogramObserve8
(b *testing.B)
prometheus/histogram_test.go:75
Function
BenchmarkHistogramWithLabelValues
(b *testing.B)
prometheus/benchmark_test.go:204
Function
BenchmarkHistogramWrite1
(b *testing.B)
prometheus/histogram_test.go:113
Function
BenchmarkHistogramWrite2
(b *testing.B)
prometheus/histogram_test.go:117
Function
BenchmarkHistogramWrite4
(b *testing.B)
prometheus/histogram_test.go:121
Function
BenchmarkHistogramWrite8
(b *testing.B)
prometheus/histogram_test.go:125
Function
BenchmarkMetricVecWithBasic
(b *testing.B)
prometheus/vec_test.go:908
Function
BenchmarkMetricVecWithLabelValues10Keys1000ValueCardinality
(b *testing.B)
prometheus/vec_test.go:938
Function
BenchmarkMetricVecWithLabelValues10Keys100ValueCardinality
(b *testing.B)
prometheus/vec_test.go:934
Function
BenchmarkMetricVecWithLabelValues2Keys100ValueCardinality
(b *testing.B)
prometheus/vec_test.go:930
Function
BenchmarkMetricVecWithLabelValues2Keys10ValueCardinality
(b *testing.B)
prometheus/vec_test.go:922
Function
BenchmarkMetricVecWithLabelValues4Keys10ValueCardinality
(b *testing.B)
prometheus/vec_test.go:926
Function
BenchmarkMetricVecWithLabelValuesBasic
(b *testing.B)
prometheus/vec_test.go:915
Function
BenchmarkParallelCounter
(b *testing.B)
prometheus/benchmark_test.go:232
Function
BenchmarkSamplesJsonSerialization
(b *testing.B)
api/prometheus/v1/api_bench_test.go:106
Function
BenchmarkSplitLines100
(b *testing.B)
prometheus/internal/difflib_test.go:260
Function
BenchmarkSplitLines10000
(b *testing.B)
prometheus/internal/difflib_test.go:264
Function
BenchmarkSummaryNoLabels
(b *testing.B)
prometheus/benchmark_test.go:190
Function
BenchmarkSummaryObserve1
(b *testing.B)
prometheus/summary_test.go:135
Function
BenchmarkSummaryObserve2
(b *testing.B)
prometheus/summary_test.go:139
Function
BenchmarkSummaryObserve4
(b *testing.B)
prometheus/summary_test.go:143
Function
BenchmarkSummaryObserve8
(b *testing.B)
prometheus/summary_test.go:147
Function
BenchmarkSummaryWithLabelValues
(b *testing.B)
prometheus/benchmark_test.go:174
Function
BenchmarkSummaryWrite1
(b *testing.B)
prometheus/summary_test.go:185
Function
BenchmarkSummaryWrite2
(b *testing.B)
prometheus/summary_test.go:189
Function
BenchmarkSummaryWrite4
(b *testing.B)
prometheus/summary_test.go:193
Function
BenchmarkSummaryWrite8
(b *testing.B)
prometheus/summary_test.go:197
Method
Buildinfo
Buildinfo returns various build information properties about the Prometheus server
api/prometheus/v1/api.go:490
Method
CleanTombstones
CleanTombstones removes the deleted data from disk and cleans up the existing tombstones.
api/prometheus/v1/api.go:472
Method
CloseIdleConnections
()
api/client.go:130
Method
CloseNotify
()
prometheus/promhttp/delegator.go:93
Method
Collect
Collect returns the current state of all metrics of the collector.
prometheus/process_collector.go:146
Method
Collect
Collect first triggers the ReallyExpensiveAssessmentOfTheSystemState. Then it creates constant metrics for each host on the fly based on the returned
prometheus/example_clustermanager_test.go:88
Method
Collect
Collect returns the current state of all metrics of the collector.
prometheus/go_collector_latest.go:318
Method
Collect
Collect returns the current state of all metrics of the collector.
prometheus/go_collector.go:244
Method
Collect
Collect calls the defined CollectorFunc function with the provided Metrics channel
prometheus/collectorfunc.go:23
Method
Collect
(ch chan<- Metric)
prometheus/wrap.go:160
Method
Collect
Collect implements Collector.
prometheus/vec.go:127
Method
Collect
Collect implements Collector.
prometheus/vec.go:333
Method
Collect
(ch chan<- Metric)
prometheus/collector_test.go:23
Method
Collect
(c chan<- Metric)
prometheus/wrap_test.go:32
Method
Collect
(c chan<- prometheus.Metric)
prometheus/registry_test.go:52
Method
Collect
Collect satisfies part of the prometheus.Collector interface.
prometheus/registry_test.go:1124
Method
Collect
(ch chan<- prometheus.Metric)
prometheus/registry_test.go:1311
← previous
next →
601–700 of 1,308, ranked by callers