Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/client_golang
/ functions
Functions
932 in github.com/prometheus/client_golang
⨍
Functions
932
◇
Types & classes
204
Function
ExampleGaugeVec
()
prometheus/examples_test.go:50
Function
ExampleGetUnifiedDiffCode
()
prometheus/internal/difflib_test.go:117
Function
ExampleGoCollector
()
prometheus/collectors/go_collector_latest_test.go:186
Function
ExampleGoCollector_DefaultRegister
()
prometheus/collectors/go_collector_latest_test.go:217
Function
ExampleGoCollector_WithAdvancedGoMetrics
()
prometheus/collectors/go_collector_latest_test.go:196
Function
ExampleHistogram
()
prometheus/examples_test.go:408
Function
ExampleInstrumentHandlerDuration
()
prometheus/promhttp/instrument_server_test.go:526
Function
ExampleInstrumentHandlerWithExtraMethods
()
prometheus/promhttp/option_test.go:30
Function
ExampleInstrumentHandlerWithLabelResolver
()
prometheus/promhttp/option_test.go:73
Function
ExampleInstrumentRoundTripperDuration
()
prometheus/promhttp/instrument_client_test.go:299
Function
ExampleMetricVec
()
prometheus/example_metricvec_test.go:109
Function
ExampleNewConstHistogram
()
prometheus/examples_test.go:432
Function
ExampleNewConstHistogram_WithExemplar
()
prometheus/examples_test.go:459
Function
ExampleNewConstMetricWithCreatedTimestamp
()
prometheus/examples_test.go:659
Function
ExampleNewConstSummary
()
prometheus/examples_test.go:381
Function
ExampleNewExpvarCollector
()
prometheus/expvar_collector_test.go:27
Function
ExampleNewMetricWithTimestamp
()
prometheus/examples_test.go:629
Function
ExamplePusher_Add
()
prometheus/push/example_add_from_gatherer_test.go:50
Function
ExamplePusher_Push
()
prometheus/push/examples_test.go:23
Function
ExampleRegister
()
prometheus/examples_test.go:174
Function
ExampleRegistry_grouping
This example shows how to use multiple registries for registering and unregistering groups of metrics.
prometheus/registry_test.go:1265
Function
ExampleSummary
()
prometheus/examples_test.go:321
Function
ExampleSummaryVec
()
prometheus/examples_test.go:345
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
Method
Flags
Flags returns the flag values that Prometheus was launched with.
api/prometheus/v1/api.go:476
Method
Flush
()
prometheus/promhttp/instrument_server_test.go:472
Method
Gather
()
prometheus/registry_test.go:1189
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:1059
Method
Gather
Gather implements TransactionalGatherer interface.
prometheus/registry.go:1072
Method
Gather
()
prometheus/promhttp/http_test.go:68
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:238
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:212
Method
Header
()
prometheus/promhttp/instrument_server_test.go:465
Method
Hijack
()
prometheus/promhttp/delegator.go:101
Method
Inc
()
prometheus/counter.go:151
Method
Inc
()
prometheus/gauge.go:114
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:478
Method
LabelValues
LabelValues performs a query for the values of the given label, time range and matchers.
api/prometheus/v1/api.go:480
Method
Len
()
prometheus/histogram.go:1341
Method
Len
()
prometheus/summary.go:532
Method
Len
()
prometheus/internal/metric.go:26
Method
Len
()
prometheus/internal/metric.go:41
Method
Less
(i, j int)
prometheus/histogram.go:1349
Method
Less
(i, j int)
prometheus/summary.go:540
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
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 metric types are 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
Metadata
Metadata returns metadata about metrics currently scraped by the metric name.
api/prometheus/v1/api.go:503
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:686
Method
MustCurryWith
MustCurryWith works as CurryWith but panics where CurryWith would have returned an error.
prometheus/gauge.go:278
Method
MustRegister
(cs ...Collector)
prometheus/wrap.go:98
Function
New
New returns a Middleware interface.
examples/middleware/httpmiddleware/httpmiddleware.go:94
Function
NewCounter
NewCounter works like the function of the same name in the prometheus package but it automatically registers the Counter with the prometheus.DefaultRe
prometheus/promauto/auto.go:167
Function
NewCounterFunc
NewCounterFunc works like the function of the same name in the prometheus package but it automatically registers the CounterFunc with the prometheus.D
prometheus/promauto/auto.go:183
Function
NewCounterVec
NewCounterVec works like the function of the same name in the prometheus package but it automatically registers the CounterVec with the prometheus.Def
prometheus/promauto/auto.go:175
Function
NewExpvarCollector
NewExpvarCollector returns a newly allocated expvar Collector. An expvar Collector collects metrics from the expvar interface. It provides a quick wa
prometheus/collectors/expvar_collector.go:54
Function
NewGauge
NewGauge works like the function of the same name in the prometheus package but it automatically registers the Gauge with the prometheus.DefaultRegist
prometheus/promauto/auto.go:190
Function
NewGaugeFunc
NewGaugeFunc works like the function of the same name in the prometheus package but it automatically registers the GaugeFunc with the prometheus.Defau
prometheus/promauto/auto.go:204
Function
NewGaugeVec
NewGaugeVec works like the function of the same name in the prometheus package but it automatically registers the GaugeVec with the prometheus.Default
prometheus/promauto/auto.go:197
Function
NewHistogram
NewHistogram works like the function of the same name in the prometheus package but it automatically registers the Histogram with the prometheus.Defau
prometheus/promauto/auto.go:226
Function
NewHistogramVec
NewHistogramVec works like the function of the same name in the prometheus package but it automatically registers the HistogramVec with the prometheus
prometheus/promauto/auto.go:234
Function
NewSummary
NewSummary works like the function of the same name in the prometheus package but it automatically registers the Summary with the prometheus.DefaultRe
prometheus/promauto/auto.go:211
Function
NewSummaryVec
NewSummaryVec works like the function of the same name in the prometheus package but it automatically registers the SummaryVec with the prometheus.Def
prometheus/promauto/auto.go:219
Function
NewUntypedFunc
NewUntypedFunc works like the function of the same name in the prometheus package but it automatically registers the UntypedFunc with the prometheus.D
prometheus/promauto/auto.go:242
Method
Observe
(float64)
prometheus/observer.go:19
Method
Observe
Observe calls f(value). It implements Observer.
prometheus/observer.go:38
Method
Observe
(v float64)
prometheus/histogram.go:741
Method
Observe
(v float64)
prometheus/summary.go:306
Method
Observe
(v float64)
prometheus/summary.go:464
Method
ObserveWithExemplar
(v float64, e Labels)
prometheus/histogram.go:745
Function
ParseOptions
(args []string)
tutorial/whatsup/internal/common.go:102
Method
Println
(v ...interface{})
prometheus/promhttp/http.go:317
Method
Push
(target string, opts *http.PushOptions)
prometheus/promhttp/delegator.go:116
Method
PushContext
PushContext is like Push but includes a context. If the context expires before HTTP request is complete, an error is returned.
prometheus/push/push.go:132
Method
QueryExemplars
QueryExemplars performs a query for exemplars by the given query and time range.
api/prometheus/v1/api.go:486
Method
Reset
Reset deletes all metrics in this vector.
prometheus/vec.go:343
Method
RoundTrip
RoundTrip implements the http.RoundTripper interface.
api/prometheus/v1/example_test.go:88
Method
Rules
Rules returns a list of alerting and recording rules that are currently loaded.
api/prometheus/v1/api.go:497
Method
Runtimeinfo
Runtimeinfo returns the various runtime information properties about the Prometheus server.
api/prometheus/v1/api.go:490
Method
SetToCurrentTime
()
prometheus/gauge.go:110
Method
Snapshot
Snapshot creates a snapshot of all current data into snapshots/<datetime>-<rand> under the TSDB's data directory and returns the directory as response
api/prometheus/v1/api.go:495
Method
Status
()
prometheus/promhttp/delegator.go:47
Method
Sub
(val float64)
prometheus/gauge.go:132
Method
Swap
(i, j int)
prometheus/histogram.go:1345
Method
Swap
(i, j int)
prometheus/summary.go:536
Method
Swap
(i, j int)
prometheus/internal/metric.go:30
Method
Swap
(i, j int)
prometheus/internal/metric.go:45
Method
TSDB
TSDB returns the cardinality statistics.
api/prometheus/v1/api.go:505
Method
Targets
Targets returns an overview of the current state of the Prometheus target discovery.
api/prometheus/v1/api.go:499
← previous
next →
601–700 of 932, ranked by callers