Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/client_golang
/ types & classes
Types & classes
204 in github.com/prometheus/client_golang
⨍
Functions
932
◇
Types & classes
204
↓ 6 callers
FuncType
ObserverFunc
The ObserverFunc type is an adapter to allow the use of ordinary functions as Observers. If f is a function with the appropriate signature, ObserverFu
prometheus/observer.go:35
↓ 6 callers
TypeAlias
UnconstrainedLabels
UnconstrainedLabels represents collection of label without any constraint on their value. Thus, it is simply a collection of label names. Unconstrai
prometheus/labels.go:101
↓ 5 callers
TypeAlias
LabelPairSorter
LabelPairSorter implements sort.Interface. It is used to sort a slice of dto.LabelPair pointers.
prometheus/internal/metric.go:24
↓ 3 callers
FuncType
optionApplyFunc
func(*options)
prometheus/promhttp/option.go:55
↓ 2 callers
FuncType
GathererFunc
GathererFunc turns a function into a Gatherer.
prometheus/registry.go:190
↓ 2 callers
TypeAlias
goVersion
prometheus/gen_go_collector_metrics_set.go:94
↓ 2 callers
TypeAlias
quantSort
prometheus/summary.go:530
↓ 1 callers
Interface
Gatherer
Gatherer is the interface for the part of a registry in charge of gathering the collected metrics into a number of MetricFamilies. The Gatherer interf
prometheus/registry.go:140
↓ 1 callers
TypeAlias
MetricSorter
MetricSorter is a sortable slice of *dto.Metric.
prometheus/internal/metric.go:39
↓ 1 callers
Interface
ObserverVec
ObserverVec is an interface implemented by `HistogramVec` and `SummaryVec`.
prometheus/observer.go:43
↓ 1 callers
TypeAlias
buckSort
prometheus/histogram.go:1339
↓ 1 callers
Struct
middleware
examples/middleware/httpmiddleware/httpmiddleware.go:31
Interface
API
API provides bindings for Prometheus's v1 API.
api/prometheus/v1/api.go:464
Struct
ActiveTarget
ActiveTarget models an active Prometheus scrape target.
api/prometheus/v1/api.go:633
Struct
Alert
Alert models an active alert.
api/prometheus/v1/api.go:618
Struct
AlertManager
AlertManager models a configured Alert Manager.
api/prometheus/v1/api.go:522
Struct
AlertManagersResult
AlertManagersResult contains the result from querying the alertmanagers endpoint.
api/prometheus/v1/api.go:516
TypeAlias
AlertState
AlertState models the state of an alert.
api/prometheus/v1/api.go:387
Struct
AlertingRule
AlertingRule models a alerting rule.
api/prometheus/v1/api.go:592
Struct
AlertsResult
AlertsResult contains the result from querying the alerts endpoint.
api/prometheus/v1/api.go:511
Struct
AlreadyRegisteredError
AlreadyRegisteredError is returned by the Register method if the Collector to be registered has already been registered before, or a different Collect
prometheus/registry.go:205
Struct
Bridge
Bridge pushes metrics to the configured Graphite server.
prometheus/graphite/bridge.go:85
Struct
BuildinfoResult
BuildinfoResult contains the results from querying the buildinfo endpoint.
api/prometheus/v1/api.go:535
Interface
Client
Client is the interface for an API client.
api/client.go:77
Struct
ClusterManager
ClusterManager is an example for a system that might have been built without Prometheus in mind. It models a central manager of jobs running in a clus
prometheus/example_clustermanager_test.go:35
Struct
ClusterManagerCollector
ClusterManagerCollector implements the Collector interface.
prometheus/example_clustermanager_test.go:60
Interface
Collector
Collector is the interface implemented by anything that can be used by Prometheus to collect metrics. A Collector has to be registered for collection.
prometheus/collector.go:27
Struct
Config
tutorial/whatsup/internal/common.go:37
Struct
Config
Config defines the Graphite bridge config.
prometheus/graphite/bridge.go:56
Struct
Config
Config defines configuration parameters for a new client.
api/client.go:40
Struct
ConfigResult
ConfigResult contains the result from querying the config endpoint.
api/prometheus/v1/api.go:527
Interface
ConstrainableLabels
ConstrainableLabels is an interface that allows creating of labels that can be optionally constrained. prometheus.V2().NewCounterVec(CounterVecOpts{
prometheus/labels.go:56
Struct
ConstrainedLabel
ConstrainedLabels represents a label name and its constrain function to normalize label values. This type is commonly used when constructing metric ve
prometheus/labels.go:41
TypeAlias
ConstrainedLabels
ConstrainedLabels represents a collection of label name -> constrain function to normalize label values. This type is commonly used when constructing
prometheus/labels.go:64
Interface
Counter
Counter is a Metric that represents a single numerical value that only ever goes up. That implies that it cannot be used to count items whose number c
prometheus/counter.go:35
Interface
CounterFunc
CounterFunc is a Counter whose value is determined at collect time by calling a provided function. To create CounterFunc instances, use NewCounterFun
prometheus/counter.go:336
TypeAlias
CounterOpts
CounterOpts is an alias for Opts. See there for doc comments.
prometheus/counter.go:61
Struct
CounterVec
CounterVec is a Collector that bundles a set of Counters that all share the same Desc, but have different values for their variable labels. This is us
prometheus/counter.go:188
Struct
CounterVecOpts
CounterVecOpts bundles the options to create a CounterVec metric. It is mandatory to set CounterOpts, see there for mandatory fields. VariableLabels i
prometheus/counter.go:66
Struct
Desc
Desc is the descriptor used by every Prometheus Metric. It is essentially the immutable meta-data of a Metric. The normal Metric implementations inclu
prometheus/desc.go:45
Struct
DroppedTarget
DroppedTarget models a dropped Prometheus scrape target.
api/prometheus/v1/api.go:646
Struct
Error
Error is an error returned by the API.
api/prometheus/v1/api.go:445
TypeAlias
ErrorType
ErrorType models the different API error types.
api/prometheus/v1/api.go:390
Struct
Exemplar
Exemplar is easier to use, user-facing representation of *dto.Exemplar.
prometheus/metric.go:207
Struct
Exemplar
Exemplar is additional information associated with a time series.
api/prometheus/v1/api.go:855
Interface
ExemplarAdder
ExemplarAdder is implemented by Counters that offer the option of adding a value to the Counter together with an exemplar. Its AddWithExemplar method
prometheus/counter.go:56
Interface
ExemplarObserver
ExemplarObserver is implemented by Observers that offer the option of observing a value together with an exemplar. Its ObserveWithExemplar method work
prometheus/observer.go:62
Struct
ExemplarQueryResult
api/prometheus/v1/api.go:861
Struct
Factory
Factory provides factory methods to create Collectors that are automatically registered with a Registerer. Create a Factory with the With function, pr
prometheus/promauto/auto.go:251
TypeAlias
FlagsResult
FlagsResult contains the result from querying the flag endpoint.
api/prometheus/v1/api.go:532
TypeAlias
Gatherers
Gatherers is a slice of Gatherer instances that implements the Gatherer interface itself. Its Gather method calls Gather on all Gatherers in the slice
prometheus/registry.go:742
Interface
Gauge
Gauge is a Metric that represents a single numerical value that can arbitrarily go up and down. A Gauge is typically used for measured values like te
prometheus/gauge.go:32
Interface
GaugeFunc
GaugeFunc is a Gauge whose value is determined at collect time by calling a provided function. To create GaugeFunc instances, use NewGaugeFunc.
prometheus/gauge.go:290
TypeAlias
GaugeOpts
GaugeOpts is an alias for Opts. See there for doc comments.
prometheus/gauge.go:56
Struct
GaugeVec
GaugeVec is a Collector that bundles a set of Gauges that all share the same Desc, but have different values for their variable labels. This is used i
prometheus/gauge.go:146
Struct
GaugeVecOpts
GaugeVecOpts bundles the options to create a GaugeVec metric. It is mandatory to set GaugeOpts, see there for mandatory fields. VariableLabels is opti
prometheus/gauge.go:61
TypeAlias
GoCollectionOption
GoCollectionOption represents Go collection option flag. Deprecated.
prometheus/collectors/go_collector_latest.go:131
Struct
GoCollectorOptions
GoCollectorOptions should not be used be directly by anything, except `collectors` package. Use it via collectors package instead. See issue https://g
prometheus/internal/go_collector_options.go:28
Struct
GoCollectorRule
prometheus/internal/go_collector_options.go:18
Struct
GoRuntimeMetricsRule
GoRuntimeMetricsRule allow enabling and configuring particular group of runtime/metrics. TODO(bwplotka): Consider adding ability to adjust buckets.
prometheus/collectors/go_collector_latest.go:90
Interface
HTTPDoer
HTTPDoer is an interface for the one method of http.Client that is used by Pusher
prometheus/push/push.go:64
TypeAlias
HandlerErrorHandling
HandlerErrorHandling defines how a Handler serving metrics will handle errors.
prometheus/promhttp/http.go:286
TypeAlias
HandlerErrorHandling
HandlerErrorHandling defines how a Handler serving metrics will handle errors.
prometheus/graphite/bridge.go:43
Struct
HandlerOpts
HandlerOpts specifies options how to serve metrics via an http.Handler. The zero value of HandlerOpts is a reasonable default.
prometheus/promhttp/http.go:322
TypeAlias
HealthStatus
HealthStatus models the health status of a scrape target.
api/prometheus/v1/api.go:393
Interface
Histogram
The nativeHistogramBounds above can be generated with the code below. TODO(beorn7): It's tempting to actually use `go generate` to generate the code
prometheus/histogram.go:243
Struct
HistogramOpts
HistogramOpts bundles the options for creating a Histogram metric. It is mandatory to set Name to a non-empty string. All other fields are optional an
prometheus/histogram.go:359
Struct
HistogramVec
HistogramVec is a Collector that bundles a set of Histograms that all share the same Desc, but have different values for their variable labels. This i
prometheus/histogram.go:1112
Struct
HistogramVecOpts
HistogramVecOpts bundles the options to create a HistogramVec metric. It is mandatory to set HistogramOpts, see there for mandatory fields. VariableLa
prometheus/histogram.go:486
Struct
Info
Info implements an info pseudo-metric, which is modeled as a Gauge that always has a value of 1. In practice, you would just use a Gauge directly, but
prometheus/example_metricvec_test.go:30
Struct
InfoVec
InfoVec is the vector version for Info. As an info metric never changes, we wouldn't really need to wrap GetMetricWithLabelValues and GetMetricWith be
prometheus/example_metricvec_test.go:51
Struct
InstrumentTrace
InstrumentTrace is used to offer flexibility in instrumenting the available httptrace.ClientTrace hook functions. Each function is passed a float64 re
prometheus/promhttp/instrument_client.go:136
FuncType
LabelConstraint
LabelConstraint normalizes label values.
prometheus/labels.go:36
FuncType
LabelValueFromCtx
LabelValueFromCtx are used to compute the label value from request context. Context can be filled with values from request through middleware.
prometheus/promhttp/option.go:29
TypeAlias
Labels
Labels represents a collection of label name -> value mappings. This type is commonly used with the With(Labels) and GetMetricWith(Labels) methods of
prometheus/labels.go:33
Struct
Linter
A Linter is a Prometheus metrics linter. It identifies issues with metric names, types, and metadata, and reports them to the caller.
prometheus/testutil/promlint/promlint.go:28
Interface
Logger
Logger is the minimal interface HandlerOpts needs for logging. Note that log.Logger from the standard library implements this interface, and it is eas
prometheus/promhttp/http.go:316
Interface
Logger
Logger is the minimal interface Bridge needs for logging. Note that log.Logger from the standard library implements this interface, and it is easy to
prometheus/graphite/bridge.go:101
Struct
Match
prometheus/internal/difflib.go:49
Struct
Metadata
Metadata models the metadata of a metric.
api/prometheus/v1/api.go:660
Interface
Metric
For convenient use with xxhash. A Metric models a single sample value with its meta data being exported to Prometheus. Implementations of Metric in th
prometheus/metric.go:33
Struct
MetricMetadata
MetricMetadata models the metadata of a metric with its scrape target and name.
api/prometheus/v1/api.go:651
TypeAlias
MetricType
MetricType models the type of a metric.
api/prometheus/v1/api.go:402
Struct
MetricVec
MetricVec is a Collector to bundle metrics of the same name that differ in their label values. MetricVec is not used directly but as a building block
prometheus/vec.go:36
Interface
Middleware
examples/middleware/httpmiddleware/httpmiddleware.go:26
TypeAlias
MultiError
MultiError is a slice of errors implementing the error interface. It is used by a Gatherer to report multiple errors during MetricFamily gathering.
prometheus/registry.go:215
Struct
MultiTRegistry
MultiTRegistry is a TransactionalGatherer that joins gathered metrics from multiple transactional gatherers. It is caller responsibility to ensure tw
prometheus/registry.go:998
Interface
Observer
Observer is the interface that wraps the Observe method, which is used by Histogram and Summary to add observations.
prometheus/observer.go:18
Struct
OpCode
prometheus/internal/difflib.go:55
FuncType
Option
func(c *apiOptions)
api/prometheus/v1/api.go:1081
Interface
Option
Option are used to configure both handler (middleware) or round tripper.
prometheus/promhttp/option.go:23
Struct
Opts
Opts bundles the options for creating most Metric types. Each metric implementation XXX has its own XXXOpts type, but in most cases, it is just an ali
prometheus/metric.go:68
Struct
Problem
A Problem is an issue detected by a linter.
prometheus/testutil/promlint/problem.go:19
Struct
ProcessCollectorOpts
ProcessCollectorOpts defines the behavior of a process metrics collector created with NewProcessCollector.
prometheus/process_collector.go:37
Struct
ProcessCollectorOpts
ProcessCollectorOpts defines the behavior of a process metrics collector created with NewProcessCollector.
prometheus/collectors/process_collector.go:20
Struct
Pusher
Pusher manages a push to the Pushgateway. Use New to create one, configure it with its methods, and finally use the Add or Push method to push.
prometheus/push/push.go:70
Struct
Range
Range represents a sliced time range.
api/prometheus/v1/api.go:456
Struct
RecordingRule
RecordingRule models a recording rule.
api/prometheus/v1/api.go:607
Interface
Registerer
Registerer is the interface for the part of a registry in charge of registering and unregistering. Users of custom registries should use Registerer as
prometheus/registry.go:96
Struct
Registry
Registry registers Prometheus collectors, collects their metrics, and gathers them into MetricFamilies for exposition. It implements Registerer, Gathe
prometheus/registry.go:260
next →
1–100 of 204, ranked by callers