Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/client_golang
/ functions
Functions
1,307 in github.com/prometheus/client_golang
⨍
Functions
1,307
◇
Types & classes
279
↓ 1 callers
Function
startSparkForge
(reg prometheus.Registerer)
examples/customlabels/main.go:82
↓ 1 callers
Function
stringToLines
(s string)
prometheus/graphite/bridge_test.go:339
↓ 1 callers
Function
syncMapToMap
(syncmap *sync.Map)
prometheus/histogram_test.go:1566
↓ 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 *jsoniter.Iterator)
api/prometheus/v1/api_126.go:149
↓ 1 callers
Function
unmarshalSampleHistogramPairJSON
(ptr unsafe.Pointer, iter *jsoniter.Iterator)
api/prometheus/v1/api_126.go:67
↓ 1 callers
Function
unmarshalSamplePairJSON
(ptr unsafe.Pointer, iter *jsoniter.Iterator)
api/prometheus/v1/api_126.go:38
↓ 1 callers
Method
unwrapRecursively
()
prometheus/wrap.go:185
↓ 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:517
↓ 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_go126_test.go:18
↓ 1 callers
Function
withDebugMetrics
()
prometheus/collectors/go_collector_go126_test.go:204
↓ 1 callers
Function
withGCMetrics
()
prometheus/collectors/go_collector_go126_test.go:136
↓ 1 callers
Function
withMemoryMetrics
()
prometheus/collectors/go_collector_go126_test.go:167
↓ 1 callers
Function
withSchedulerMetrics
()
prometheus/collectors/go_collector_go126_test.go:186
↓ 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:144
Method
Alerts
Alerts returns a list of all active alerts.
api/prometheus/v1/api.go:142
Method
Alerts
(ctx context.Context)
api/prometheus/v1/api.go:560
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
BenchmarkAPIResponse
(b *testing.B)
api/prometheus/v1/api_bench_test.go:149
Function
BenchmarkClient
(b *testing.B)
api/client_test.go:235
Function
BenchmarkCompression
(b *testing.B)
prometheus/promhttp/http_test.go:840
Function
BenchmarkCounter
(b *testing.B)
prometheus/benchmark_test.go:21
Function
BenchmarkCounterNoLabels
(b *testing.B)
prometheus/benchmark_test.go:132
Function
BenchmarkCounterWithLabelValuesConcurrent
(b *testing.B)
prometheus/benchmark_test.go:111
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:1523
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:157
Function
BenchmarkGaugeWithLabelValues
(b *testing.B)
prometheus/benchmark_test.go:143
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:210
Function
BenchmarkHistogramObserve1
(b *testing.B)
prometheus/histogram_test.go:64
Function
BenchmarkHistogramObserve2
(b *testing.B)
prometheus/histogram_test.go:68
Function
BenchmarkHistogramObserve4
(b *testing.B)
prometheus/histogram_test.go:72
Function
BenchmarkHistogramObserve8
(b *testing.B)
prometheus/histogram_test.go:76
Function
BenchmarkHistogramWithLabelValues
(b *testing.B)
prometheus/benchmark_test.go:196
Function
BenchmarkHistogramWrite1
(b *testing.B)
prometheus/histogram_test.go:114
Function
BenchmarkHistogramWrite2
(b *testing.B)
prometheus/histogram_test.go:118
Function
BenchmarkHistogramWrite4
(b *testing.B)
prometheus/histogram_test.go:122
Function
BenchmarkHistogramWrite8
(b *testing.B)
prometheus/histogram_test.go:126
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:222
Function
BenchmarkQueryResult
(b *testing.B)
api/prometheus/v1/api_bench_test.go:381
Function
BenchmarkRuleGroup
(b *testing.B)
api/prometheus/v1/api_bench_test.go:309
Function
BenchmarkSamplesJsonSerialization
(b *testing.B)
api/prometheus/v1/api_bench_test.go:107
Function
BenchmarkSplitLines100
(b *testing.B)
prometheus/internal/difflib_test.go:258
Function
BenchmarkSplitLines10000
(b *testing.B)
prometheus/internal/difflib_test.go:262
Function
BenchmarkSummaryNoLabels
(b *testing.B)
prometheus/benchmark_test.go:183
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:168
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:164
Method
CleanTombstones
CleanTombstones removes the deleted data from disk and cleans up the existing tombstones.
api/prometheus/v1/api.go:146
Method
CloseIdleConnections
()
api/client.go:133
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:314
Method
Collect
Collect returns the current state of all metrics of the collector.
prometheus/go_collector.go:249
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:159
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
← previous
next →
601–700 of 1,307, ranked by callers