MCPcopy Create free account

hub / github.com/prometheus/client_golang / types & classes

Types & classes204 in github.com/prometheus/client_golang

↓ 6 callersFuncTypeObserverFunc
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 callersTypeAliasUnconstrainedLabels
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 callersTypeAliasLabelPairSorter
LabelPairSorter implements sort.Interface. It is used to sort a slice of dto.LabelPair pointers.
prometheus/internal/metric.go:24
↓ 3 callersFuncTypeoptionApplyFunc
func(*options)
prometheus/promhttp/option.go:55
↓ 2 callersFuncTypeGathererFunc
GathererFunc turns a function into a Gatherer.
prometheus/registry.go:190
↓ 2 callersTypeAliasgoVersion
prometheus/gen_go_collector_metrics_set.go:94
↓ 2 callersTypeAliasquantSort
prometheus/summary.go:530
↓ 1 callersInterfaceGatherer
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 callersTypeAliasMetricSorter
MetricSorter is a sortable slice of *dto.Metric.
prometheus/internal/metric.go:39
↓ 1 callersInterfaceObserverVec
ObserverVec is an interface implemented by `HistogramVec` and `SummaryVec`.
prometheus/observer.go:43
↓ 1 callersTypeAliasbuckSort
prometheus/histogram.go:1339
↓ 1 callersStructmiddleware
examples/middleware/httpmiddleware/httpmiddleware.go:31
InterfaceAPI
API provides bindings for Prometheus's v1 API.
api/prometheus/v1/api.go:464
StructActiveTarget
ActiveTarget models an active Prometheus scrape target.
api/prometheus/v1/api.go:633
StructAlert
Alert models an active alert.
api/prometheus/v1/api.go:618
StructAlertManager
AlertManager models a configured Alert Manager.
api/prometheus/v1/api.go:522
StructAlertManagersResult
AlertManagersResult contains the result from querying the alertmanagers endpoint.
api/prometheus/v1/api.go:516
TypeAliasAlertState
AlertState models the state of an alert.
api/prometheus/v1/api.go:387
StructAlertingRule
AlertingRule models a alerting rule.
api/prometheus/v1/api.go:592
StructAlertsResult
AlertsResult contains the result from querying the alerts endpoint.
api/prometheus/v1/api.go:511
StructAlreadyRegisteredError
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
StructBridge
Bridge pushes metrics to the configured Graphite server.
prometheus/graphite/bridge.go:85
StructBuildinfoResult
BuildinfoResult contains the results from querying the buildinfo endpoint.
api/prometheus/v1/api.go:535
InterfaceClient
Client is the interface for an API client.
api/client.go:77
StructClusterManager
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
StructClusterManagerCollector
ClusterManagerCollector implements the Collector interface.
prometheus/example_clustermanager_test.go:60
InterfaceCollector
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
StructConfig
tutorial/whatsup/internal/common.go:37
StructConfig
Config defines the Graphite bridge config.
prometheus/graphite/bridge.go:56
StructConfig
Config defines configuration parameters for a new client.
api/client.go:40
StructConfigResult
ConfigResult contains the result from querying the config endpoint.
api/prometheus/v1/api.go:527
InterfaceConstrainableLabels
ConstrainableLabels is an interface that allows creating of labels that can be optionally constrained. prometheus.V2().NewCounterVec(CounterVecOpts{
prometheus/labels.go:56
StructConstrainedLabel
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
TypeAliasConstrainedLabels
ConstrainedLabels represents a collection of label name -> constrain function to normalize label values. This type is commonly used when constructing
prometheus/labels.go:64
InterfaceCounter
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
InterfaceCounterFunc
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
TypeAliasCounterOpts
CounterOpts is an alias for Opts. See there for doc comments.
prometheus/counter.go:61
StructCounterVec
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
StructCounterVecOpts
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
StructDesc
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
StructDroppedTarget
DroppedTarget models a dropped Prometheus scrape target.
api/prometheus/v1/api.go:646
StructError
Error is an error returned by the API.
api/prometheus/v1/api.go:445
TypeAliasErrorType
ErrorType models the different API error types.
api/prometheus/v1/api.go:390
StructExemplar
Exemplar is easier to use, user-facing representation of *dto.Exemplar.
prometheus/metric.go:207
StructExemplar
Exemplar is additional information associated with a time series.
api/prometheus/v1/api.go:855
InterfaceExemplarAdder
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
InterfaceExemplarObserver
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
StructExemplarQueryResult
api/prometheus/v1/api.go:861
StructFactory
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
TypeAliasFlagsResult
FlagsResult contains the result from querying the flag endpoint.
api/prometheus/v1/api.go:532
TypeAliasGatherers
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
InterfaceGauge
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
InterfaceGaugeFunc
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
TypeAliasGaugeOpts
GaugeOpts is an alias for Opts. See there for doc comments.
prometheus/gauge.go:56
StructGaugeVec
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
StructGaugeVecOpts
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
TypeAliasGoCollectionOption
GoCollectionOption represents Go collection option flag. Deprecated.
prometheus/collectors/go_collector_latest.go:131
StructGoCollectorOptions
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
StructGoCollectorRule
prometheus/internal/go_collector_options.go:18
StructGoRuntimeMetricsRule
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
InterfaceHTTPDoer
HTTPDoer is an interface for the one method of http.Client that is used by Pusher
prometheus/push/push.go:64
TypeAliasHandlerErrorHandling
HandlerErrorHandling defines how a Handler serving metrics will handle errors.
prometheus/promhttp/http.go:286
TypeAliasHandlerErrorHandling
HandlerErrorHandling defines how a Handler serving metrics will handle errors.
prometheus/graphite/bridge.go:43
StructHandlerOpts
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
TypeAliasHealthStatus
HealthStatus models the health status of a scrape target.
api/prometheus/v1/api.go:393
InterfaceHistogram
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
StructHistogramOpts
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
StructHistogramVec
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
StructHistogramVecOpts
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
StructInfo
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
StructInfoVec
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
StructInstrumentTrace
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
FuncTypeLabelConstraint
LabelConstraint normalizes label values.
prometheus/labels.go:36
FuncTypeLabelValueFromCtx
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
TypeAliasLabels
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
StructLinter
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
InterfaceLogger
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
InterfaceLogger
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
StructMatch
prometheus/internal/difflib.go:49
StructMetadata
Metadata models the metadata of a metric.
api/prometheus/v1/api.go:660
InterfaceMetric
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
StructMetricMetadata
MetricMetadata models the metadata of a metric with its scrape target and name.
api/prometheus/v1/api.go:651
TypeAliasMetricType
MetricType models the type of a metric.
api/prometheus/v1/api.go:402
StructMetricVec
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
InterfaceMiddleware
examples/middleware/httpmiddleware/httpmiddleware.go:26
TypeAliasMultiError
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
StructMultiTRegistry
MultiTRegistry is a TransactionalGatherer that joins gathered metrics from multiple transactional gatherers. It is caller responsibility to ensure tw
prometheus/registry.go:998
InterfaceObserver
Observer is the interface that wraps the Observe method, which is used by Histogram and Summary to add observations.
prometheus/observer.go:18
StructOpCode
prometheus/internal/difflib.go:55
FuncTypeOption
func(c *apiOptions)
api/prometheus/v1/api.go:1081
InterfaceOption
Option are used to configure both handler (middleware) or round tripper.
prometheus/promhttp/option.go:23
StructOpts
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
StructProblem
A Problem is an issue detected by a linter.
prometheus/testutil/promlint/problem.go:19
StructProcessCollectorOpts
ProcessCollectorOpts defines the behavior of a process metrics collector created with NewProcessCollector.
prometheus/process_collector.go:37
StructProcessCollectorOpts
ProcessCollectorOpts defines the behavior of a process metrics collector created with NewProcessCollector.
prometheus/collectors/process_collector.go:20
StructPusher
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
StructRange
Range represents a sliced time range.
api/prometheus/v1/api.go:456
StructRecordingRule
RecordingRule models a recording rule.
api/prometheus/v1/api.go:607
InterfaceRegisterer
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
StructRegistry
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