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
Function
ExampleRegistry_grouping
This example shows how to use multiple registries for registering and unregistering groups of metrics.
prometheus/registry_test.go:1273
Function
ExampleSummary
()
prometheus/examples_test.go:323
Function
ExampleSummaryVec
()
prometheus/examples_test.go:347
Function
ExampleTimer
()
prometheus/example_timer_test.go:29
Function
ExampleTimer_complex
()
prometheus/example_timer_complex_test.go:67
Function
ExampleTimer_gauge
()
prometheus/example_timer_gauge_test.go:42
Function
ExampleWithExtraMethods
()
prometheus/promhttp/option_test.go:30
Function
ExampleWithLabelFromCtx
()
prometheus/promhttp/option_test.go:73
Function
ExampleWrapCollectorWith
Using WrapCollectorWith to un-register metrics registered by a third party lib. newThirdPartyLibFoo illustrates a constructor from a third-party lib t
prometheus/examples_test.go:799
Method
Flags
Flags returns the flag values that Prometheus was launched with.
api/prometheus/v1/api.go:478
Method
Flush
()
prometheus/promhttp/instrument_server_test.go:566
Method
FlushError
()
prometheus/promhttp/delegator_test.go:39
Method
FormatQuery
FormatQuery formats a PromQL expression in a prettified way.
api/prometheus/v1/api.go:513
Method
Gather
()
prometheus/registry_test.go:1197
Method
Gather
Gather implements Gatherer.
prometheus/registry.go:193
Method
Gather
Gather returns metrics in a lexicographically sorted slice of uniquely named MetricFamily protobufs. Gather ensures that the returned slice is valid a
prometheus/registry.go:1107
Method
Gather
Gather implements TransactionalGatherer interface.
prometheus/registry.go:1120
Method
Gather
()
prometheus/promhttp/http_test.go:80
Method
Gather
()
prometheus/promhttp/http_test.go:913
Method
Gather
()
prometheus/promhttp/http_test.go:1097
Method
GetCountFloat
()
exp/api/remote/genproto/v2/types.pb.go:690
Method
GetCountInt
()
exp/api/remote/genproto/v2/types.pb.go:683
Method
GetCreatedTimestamp
()
exp/api/remote/genproto/v2/types.pb.go:340
Method
GetCustomValues
()
exp/api/remote/genproto/v2/types.pb.go:795
Method
GetExemplars
()
exp/api/remote/genproto/v2/types.pb.go:326
Method
GetHelpRef
()
exp/api/remote/genproto/v2/types.pb.go:540
Method
GetHistograms
()
exp/api/remote/genproto/v2/types.pb.go:319
Method
GetLabelsRefs
()
exp/api/remote/genproto/v2/types.pb.go:305
Method
GetLabelsRefs
()
exp/api/remote/genproto/v2/types.pb.go:402
Method
GetLength
()
exp/api/remote/genproto/v2/types.pb.go:887
Method
GetMetadata
()
exp/api/remote/genproto/v2/types.pb.go:333
Method
GetMetricWith
GetMetricWith returns the Metric for the given Labels map (the label names must match those of the variable labels in Desc). If that label map is acce
prometheus/vec.go:240
Method
GetMetricWithLabelValues
GetMetricWithLabelValues returns the Metric for the given slice of label values (same order as the variable labels in Desc). If that combination of la
prometheus/vec.go:214
Method
GetNegativeCounts
()
exp/api/remote/genproto/v2/types.pb.go:753
Method
GetNegativeDeltas
()
exp/api/remote/genproto/v2/types.pb.go:746
Method
GetNegativeSpans
()
exp/api/remote/genproto/v2/types.pb.go:739
Method
GetOffset
()
exp/api/remote/genproto/v2/types.pb.go:880
Method
GetPositiveCounts
()
exp/api/remote/genproto/v2/types.pb.go:774
Method
GetPositiveDeltas
()
exp/api/remote/genproto/v2/types.pb.go:767
Method
GetPositiveSpans
()
exp/api/remote/genproto/v2/types.pb.go:760
Method
GetResetHint
()
exp/api/remote/genproto/v2/types.pb.go:781
Method
GetSamples
()
exp/api/remote/genproto/v2/types.pb.go:312
Method
GetSchema
()
exp/api/remote/genproto/v2/types.pb.go:704
Method
GetSum
()
exp/api/remote/genproto/v2/types.pb.go:697
Method
GetSymbols
()
exp/api/remote/genproto/v2/types.pb.go:215
Method
GetTimeseries
()
exp/api/remote/genproto/v2/types.pb.go:222
Method
GetTimestamp
()
exp/api/remote/genproto/v2/types.pb.go:416
Method
GetTimestamp
()
exp/api/remote/genproto/v2/types.pb.go:788
Method
GetUnitRef
()
exp/api/remote/genproto/v2/types.pb.go:547
Method
GetValue
()
exp/api/remote/genproto/v2/types.pb.go:409
Method
GetZeroCountFloat
()
exp/api/remote/genproto/v2/types.pb.go:732
Method
GetZeroCountInt
()
exp/api/remote/genproto/v2/types.pb.go:725
Method
Header
()
prometheus/promhttp/instrument_server_test.go:559
Method
Header
()
prometheus/promhttp/instrument_server_test.go:577
Method
Hijack
()
prometheus/promhttp/delegator.go:107
Method
Inc
()
prometheus/counter.go:152
Method
Inc
()
prometheus/gauge.go:115
Method
Inc
()
prometheus/promhttp/instrument_server_test.go:503
Method
LabelNames
LabelNames returns the unique label names present in the block in sorted order by given time range and matchers.
api/prometheus/v1/api.go:480
Method
LabelValues
LabelValues performs a query for the values of the given label, time range and matchers.
api/prometheus/v1/api.go:482
Method
Len
()
prometheus/histogram.go:1449
Method
Len
()
prometheus/summary.go:539
Method
Len
()
prometheus/internal/metric.go:26
Method
Len
()
prometheus/internal/metric.go:41
Method
Less
(i, j int)
prometheus/histogram.go:1457
Method
Less
(i, j int)
prometheus/summary.go:547
Method
Less
(i, j int)
prometheus/internal/metric.go:34
Method
Less
(i, j int)
prometheus/internal/metric.go:49
Function
LintCamelCase
LintCamelCase detects metric names and label names written in camelCase.
prometheus/testutil/promlint/validations/generic_name_validations.go:75
Function
LintCounter
LintCounter detects issues specific to counters, as well as patterns that should only be used with counters.
prometheus/testutil/promlint/validations/counter_validations.go:25
Function
LintDuplicateMetric
LintDuplicateMetric detects duplicate metric.
prometheus/testutil/promlint/validations/duplicate_validations.go:24
Function
LintHelp
LintHelp detects issues related to the help text for a metric.
prometheus/testutil/promlint/validations/help_validations.go:23
Function
LintHistogramSummaryReserved
LintHistogramSummaryReserved detects when other types of metrics use names or labels reserved for use by histograms and/or summaries.
prometheus/testutil/promlint/validations/histogram_validations.go:25
Function
LintMetricTypeInName
LintMetricTypeInName detects when the metric type is included in the metric name.
prometheus/testutil/promlint/validations/generic_name_validations.go:48
Function
LintMetricUnits
LintMetricUnits detects issues with metric unit names.
prometheus/testutil/promlint/validations/generic_name_validations.go:28
Function
LintReservedChars
LintReservedChars detects colons in metric names.
prometheus/testutil/promlint/validations/generic_name_validations.go:66
Function
LintUnitAbbreviations
LintUnitAbbreviations detects abbreviated units in the metric name.
prometheus/testutil/promlint/validations/generic_name_validations.go:92
Method
MarshalToVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:38
Method
MarshalToVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:92
Method
MarshalToVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:196
Method
MarshalToVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:260
Method
MarshalToVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:304
Method
MarshalToVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:352
Method
MarshalToVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:515
Method
MarshalToVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:527
Method
MarshalToVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:540
Method
MarshalToVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:552
Method
MarshalToVT
(dAtA []byte)
exp/api/remote/genproto/v2/types_vtproto.pb.go:578
Method
MarshalVT
()
exp/api/remote/genproto/v2/types_vtproto.pb.go:25
Method
MarshalVT
()
exp/api/remote/genproto/v2/types_vtproto.pb.go:79
Method
MarshalVT
()
exp/api/remote/genproto/v2/types_vtproto.pb.go:183
Method
MarshalVT
()
exp/api/remote/genproto/v2/types_vtproto.pb.go:247
Method
MarshalVT
()
exp/api/remote/genproto/v2/types_vtproto.pb.go:291
Method
MarshalVT
()
exp/api/remote/genproto/v2/types_vtproto.pb.go:339
Method
MarshalVT
()
exp/api/remote/genproto/v2/types_vtproto.pb.go:565
Method
Metadata
Metadata returns metadata about metrics currently scraped by the metric name.
api/prometheus/v1/api.go:505
Method
MustCurryWith
(labels prometheus.Labels)
prometheus/example_metricvec_test.go:101
Method
MustCurryWith
MustCurryWith works as CurryWith but panics where CurryWith would have returned an error.
prometheus/summary.go:694
Method
MustCurryWith
MustCurryWith works as CurryWith but panics where CurryWith would have returned an error.
prometheus/gauge.go:280
Method
MustGather
MustGather implements Gatherer. Wraps around Gather and panics if Gather fails for any reason.
prometheus/registry.go:426
← previous
next →
801–900 of 1,308, ranked by callers