MCPcopy Create free account

hub / github.com/prometheus/client_golang / functions

Functions932 in github.com/prometheus/client_golang

FunctionExampleGaugeVec
()
prometheus/examples_test.go:50
FunctionExampleGetUnifiedDiffCode
()
prometheus/internal/difflib_test.go:117
FunctionExampleGoCollector
()
prometheus/collectors/go_collector_latest_test.go:186
FunctionExampleGoCollector_DefaultRegister
()
prometheus/collectors/go_collector_latest_test.go:217
FunctionExampleGoCollector_WithAdvancedGoMetrics
()
prometheus/collectors/go_collector_latest_test.go:196
FunctionExampleHistogram
()
prometheus/examples_test.go:408
FunctionExampleInstrumentHandlerDuration
()
prometheus/promhttp/instrument_server_test.go:526
FunctionExampleInstrumentHandlerWithExtraMethods
()
prometheus/promhttp/option_test.go:30
FunctionExampleInstrumentHandlerWithLabelResolver
()
prometheus/promhttp/option_test.go:73
FunctionExampleInstrumentRoundTripperDuration
()
prometheus/promhttp/instrument_client_test.go:299
FunctionExampleMetricVec
()
prometheus/example_metricvec_test.go:109
FunctionExampleNewConstHistogram
()
prometheus/examples_test.go:432
FunctionExampleNewConstHistogram_WithExemplar
()
prometheus/examples_test.go:459
FunctionExampleNewConstMetricWithCreatedTimestamp
()
prometheus/examples_test.go:659
FunctionExampleNewConstSummary
()
prometheus/examples_test.go:381
FunctionExampleNewExpvarCollector
()
prometheus/expvar_collector_test.go:27
FunctionExampleNewMetricWithTimestamp
()
prometheus/examples_test.go:629
FunctionExamplePusher_Add
()
prometheus/push/example_add_from_gatherer_test.go:50
FunctionExamplePusher_Push
()
prometheus/push/examples_test.go:23
FunctionExampleRegister
()
prometheus/examples_test.go:174
FunctionExampleRegistry_grouping
This example shows how to use multiple registries for registering and unregistering groups of metrics.
prometheus/registry_test.go:1265
FunctionExampleSummary
()
prometheus/examples_test.go:321
FunctionExampleSummaryVec
()
prometheus/examples_test.go:345
FunctionExampleTimer
()
prometheus/example_timer_test.go:29
FunctionExampleTimer_complex
()
prometheus/example_timer_complex_test.go:67
FunctionExampleTimer_gauge
()
prometheus/example_timer_gauge_test.go:42
MethodFlags
Flags returns the flag values that Prometheus was launched with.
api/prometheus/v1/api.go:476
MethodFlush
()
prometheus/promhttp/instrument_server_test.go:472
MethodGather
()
prometheus/registry_test.go:1189
MethodGather
Gather implements Gatherer.
prometheus/registry.go:193
MethodGather
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
MethodGather
Gather implements TransactionalGatherer interface.
prometheus/registry.go:1072
MethodGather
()
prometheus/promhttp/http_test.go:68
MethodGetMetricWith
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
MethodGetMetricWithLabelValues
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
MethodHeader
()
prometheus/promhttp/instrument_server_test.go:465
MethodHijack
()
prometheus/promhttp/delegator.go:101
MethodInc
()
prometheus/counter.go:151
MethodInc
()
prometheus/gauge.go:114
MethodLabelNames
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
MethodLabelValues
LabelValues performs a query for the values of the given label, time range and matchers.
api/prometheus/v1/api.go:480
MethodLen
()
prometheus/histogram.go:1341
MethodLen
()
prometheus/summary.go:532
MethodLen
()
prometheus/internal/metric.go:26
MethodLen
()
prometheus/internal/metric.go:41
MethodLess
(i, j int)
prometheus/histogram.go:1349
MethodLess
(i, j int)
prometheus/summary.go:540
MethodLess
(i, j int)
prometheus/internal/metric.go:34
MethodLess
(i, j int)
prometheus/internal/metric.go:49
FunctionLintCamelCase
LintCamelCase detects metric names and label names written in camelCase.
prometheus/testutil/promlint/validations/generic_name_validations.go:75
FunctionLintCounter
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
FunctionLintHelp
LintHelp detects issues related to the help text for a metric.
prometheus/testutil/promlint/validations/help_validations.go:23
FunctionLintHistogramSummaryReserved
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
FunctionLintMetricTypeInName
LintMetricTypeInName detects when metric types are included in the metric name.
prometheus/testutil/promlint/validations/generic_name_validations.go:48
FunctionLintMetricUnits
LintMetricUnits detects issues with metric unit names.
prometheus/testutil/promlint/validations/generic_name_validations.go:28
FunctionLintReservedChars
LintReservedChars detects colons in metric names.
prometheus/testutil/promlint/validations/generic_name_validations.go:66
FunctionLintUnitAbbreviations
LintUnitAbbreviations detects abbreviated units in the metric name.
prometheus/testutil/promlint/validations/generic_name_validations.go:92
MethodMetadata
Metadata returns metadata about metrics currently scraped by the metric name.
api/prometheus/v1/api.go:503
MethodMustCurryWith
(labels prometheus.Labels)
prometheus/example_metricvec_test.go:101
MethodMustCurryWith
MustCurryWith works as CurryWith but panics where CurryWith would have returned an error.
prometheus/summary.go:686
MethodMustCurryWith
MustCurryWith works as CurryWith but panics where CurryWith would have returned an error.
prometheus/gauge.go:278
MethodMustRegister
(cs ...Collector)
prometheus/wrap.go:98
FunctionNew
New returns a Middleware interface.
examples/middleware/httpmiddleware/httpmiddleware.go:94
FunctionNewCounter
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
FunctionNewCounterFunc
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
FunctionNewCounterVec
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
FunctionNewExpvarCollector
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
FunctionNewGauge
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
FunctionNewGaugeFunc
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
FunctionNewGaugeVec
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
FunctionNewHistogram
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
FunctionNewHistogramVec
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
FunctionNewSummary
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
FunctionNewSummaryVec
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
FunctionNewUntypedFunc
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
MethodObserve
(float64)
prometheus/observer.go:19
MethodObserve
Observe calls f(value). It implements Observer.
prometheus/observer.go:38
MethodObserve
(v float64)
prometheus/histogram.go:741
MethodObserve
(v float64)
prometheus/summary.go:306
MethodObserve
(v float64)
prometheus/summary.go:464
MethodObserveWithExemplar
(v float64, e Labels)
prometheus/histogram.go:745
FunctionParseOptions
(args []string)
tutorial/whatsup/internal/common.go:102
MethodPrintln
(v ...interface{})
prometheus/promhttp/http.go:317
MethodPush
(target string, opts *http.PushOptions)
prometheus/promhttp/delegator.go:116
MethodPushContext
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
MethodQueryExemplars
QueryExemplars performs a query for exemplars by the given query and time range.
api/prometheus/v1/api.go:486
MethodReset
Reset deletes all metrics in this vector.
prometheus/vec.go:343
MethodRoundTrip
RoundTrip implements the http.RoundTripper interface.
api/prometheus/v1/example_test.go:88
MethodRules
Rules returns a list of alerting and recording rules that are currently loaded.
api/prometheus/v1/api.go:497
MethodRuntimeinfo
Runtimeinfo returns the various runtime information properties about the Prometheus server.
api/prometheus/v1/api.go:490
MethodSetToCurrentTime
()
prometheus/gauge.go:110
MethodSnapshot
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
MethodStatus
()
prometheus/promhttp/delegator.go:47
MethodSub
(val float64)
prometheus/gauge.go:132
MethodSwap
(i, j int)
prometheus/histogram.go:1345
MethodSwap
(i, j int)
prometheus/summary.go:536
MethodSwap
(i, j int)
prometheus/internal/metric.go:30
MethodSwap
(i, j int)
prometheus/internal/metric.go:45
MethodTSDB
TSDB returns the cardinality statistics.
api/prometheus/v1/api.go:505
MethodTargets
Targets returns an overview of the current state of the Prometheus target discovery.
api/prometheus/v1/api.go:499
← previousnext →601–700 of 932, ranked by callers