Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/common
/ types & classes
Types & classes
119 in github.com/prometheus/common
⨍
Functions
697
◇
Types & classes
119
↓ 11 callers
TypeAlias
SampleValue
A SampleValue is a representation of a value for a given sample at a given time.
model/value_float.go:33
↓ 9 callers
TypeAlias
LabelName
A LabelName is a key for a LabelSet or Metric. It has a value associated therewith.
model/labels.go:104
↓ 9 callers
TypeAlias
LabelValue
A LabelValue is an associated value for a LabelName.
model/labels.go:176
↓ 7 callers
FuncType
httpClientOptionFunc
func(options *httpClientOptions)
config/http_config.go:515
↓ 6 callers
TypeAlias
Metric
A Metric is similar to a LabelSet, but the key difference is that a Metric is a singleton and refers to one and only one stream of samples.
model/metric.go:247
↓ 6 callers
TypeAlias
Secret
Secret special type for storing secrets.
config/config.go:28
↓ 6 callers
TypeAlias
Time
Time is the number of milliseconds since the epoch (1970-01-01 00:00 UTC) excluding leap seconds.
model/time.go:45
↓ 5 callers
TypeAlias
Fingerprint
Fingerprint provides a hash-capable representation of a Metric. For our purposes, FNV-1A 64-bit is used.
model/fingerprinting.go:23
↓ 5 callers
TypeAlias
LabelSet
A LabelSet is a collection of LabelName and LabelValue pairs. The LabelSet may be fully-qualified down to the point where it may resolve to a single
model/labelset.go:28
↓ 3 callers
TypeAlias
Format
Format specifies the HTTP content type of the different wire protocols.
expfmt/expfmt.go:25
↓ 3 callers
TypeAlias
TLSVersion
config/http_config.go:71
↓ 3 callers
Interface
enhancedWriter
enhancedWriter has all the enhanced write functions needed here. bufio.Writer implements it.
expfmt/text_create.go:32
↓ 3 callers
TypeAlias
param
route/route.go:28
↓ 2 callers
TypeAlias
Duration
Duration wraps time.Duration. It is used to parse the custom duration format from YAML. This type should not propagate beyond the scope of input/outpu
model/time.go:165
↓ 1 callers
TypeAlias
AlertStatus
model/alert.go:22
↓ 1 callers
TypeAlias
FloatString
model/value_histogram.go:24
↓ 1 callers
TypeAlias
MetricType
MetricType represents metric type values.
model/metadata.go:17
Struct
Alert
Alert is a generic representation of an alert in the Prometheus eco-system.
model/alert.go:30
TypeAlias
Alerts
Alert is a list of alerts that can be sorted in chronological order.
model/alert.go:111
Struct
Authorization
Authorization contains HTTP authorization credentials.
config/http_config.go:160
Struct
BasicAuth
BasicAuth contains basic HTTP authentication credentials.
config/http_config.go:139
Interface
Closer
Closer is implemented by Encoders that need to be closed to finalize encoding. (For example, OpenMetrics needs a final `# EOF` line.) Note that all E
expfmt/encode.go:60
Struct
Config
Config is a struct containing configurable settings for the logger.
promslog/slog.go:142
Struct
DecodeOptions
DecodeOptions contains options used by the Decoder and in sample extraction.
expfmt/decode.go:36
Interface
Decoder
Decoder types decode an input stream into metric families.
expfmt/decode.go:31
FuncType
DialContextFunc
DialContextFunc defines the signature of the DialContext() function implemented by net.Dialer.
config/http_config.go:494
Interface
DirectorySetter
DirectorySetter is a config type that contains file paths that may be relative to the file containing the config.
config/config.go:88
Interface
Encoder
Encoder types encode metric families into an underlying wire protocol.
expfmt/encode.go:49
FuncType
EncoderOption
func(*encoderOption)
expfmt/openmetrics_create.go:35
TypeAlias
EscapingScheme
model/metric.go:204
Struct
File
assets/embed_gzip.go:63
Struct
FileInfo
assets/embed_gzip.go:99
Struct
FileSecret
config/http_config.go:797
Struct
FileSystem
assets/embed_gzip.go:28
TypeAlias
FingerprintSet
FingerprintSet is a set of Fingerprints.
model/fingerprinting.go:64
TypeAlias
Fingerprints
Fingerprints represents a collection of Fingerprint subject to a given natural sorting scheme. It implements sort.Interface.
model/fingerprinting.go:46
Struct
Format
Format controls a logging output format. Not concurrency-safe.
promslog/slog.go:119
TypeAlias
FormatType
FormatType is a Go enum representing the overall category for the given Format. As the number of Format permutations increases, doing basic string com
expfmt/expfmt.go:80
Struct
HTTPClientConfig
HTTPClientConfig configures an HTTP client.
config/http_config.go:333
Interface
HTTPClientOption
HTTPClientOption defines an option that can be applied to the HTTP client.
config/http_config.go:511
Struct
Header
Header represents the configuration for a single HTTP header.
config/headers.go:83
Struct
Headers
Headers represents the configuration for HTTP headers.
config/headers.go:53
Struct
HistogramBucket
model/value_histogram.go:46
TypeAlias
HistogramBuckets
model/value_histogram.go:108
Struct
InlineSecret
config/http_config.go:777
Struct
Interval
Interval describes an interval between two timestamps.
model/time.go:48
Struct
JwtGrantTypeConfig
Config is the configuration for using JWT to fetch tokens, commonly known as "two-legged OAuth 2.0".
config/oauth_assertion.go:39
TypeAlias
LabelNames
LabelNames is a sortable LabelName slice. In implements sort.Interface.
model/labels.go:153
Struct
LabelPair
LabelPair pairs a name with a value.
model/labels.go:199
TypeAlias
LabelPairs
LabelPairs is a sortable slice of LabelPair pointers. It implements sort.Interface.
model/labels.go:206
TypeAlias
LabelValues
LabelValues is a sortable LabelValue slice. It implements sort.Interface.
model/labels.go:184
Struct
Level
Level controls a logging level, with an info default. It wraps slog.LevelVar with string-based level control. Level is safe to be used concurrently.
promslog/slog.go:53
TypeAlias
LogStyle
LogStyle represents the common logging formats in the Prometheus ecosystem.
promslog/slog.go:32
Struct
Matcher
Matcher describes a matches the value of a given label.
model/silence.go:25
TypeAlias
Matrix
Matrix is a list of time series.
model/value.go:347
FuncType
NewTLSConfigFunc
NewTLSConfigFunc returns tls.Config.
config/http_config.go:497
Struct
OAuth2
OAuth2 is the oauth2 client configuration.
config/http_config.go:241
Struct
ParseError
ParseError signals errors while parsing the simple and flat text-based exchange format.
expfmt/text_parse.go:41
Struct
ProxyConfig
config/http_config.go:1676
TypeAlias
ProxyHeader
config/config.go:63
Struct
Router
Router wraps httprouter.Router and adds support for prefixed sub-routers, per-request context injections and instrumentation.
route/route.go:46
Struct
Sample
Sample is a sample pair associated with a metric. A single sample must either define Value or Histogram but not both. Histogram == nil implies the Val
model/value.go:34
Struct
SampleDecoder
SampleDecoder wraps a Decoder to extract samples from the metric families decoded by the wrapped Decoder.
expfmt/decode.go:182
Struct
SampleHistogram
model/value_histogram.go:123
Struct
SampleHistogramPair
model/value_histogram.go:137
Struct
SamplePair
SamplePair pairs a SampleValue with a Timestamp.
model/value_float.go:68
Struct
SampleStream
SampleStream is a stream of Values belonging to an attached COWMetric.
model/value.go:175
TypeAlias
Samples
Samples is a sortable Sample slice. It implements sort.Interface.
model/value.go:136
Struct
Scalar
Scalar is a scalar value evaluated at the set timestamp.
model/value.go:250
Interface
SecretManager
SecretManager manages secret data mapped to names known as "references" or "refs".
config/http_config.go:766
Interface
SecretManagerOption
SecretManagerOption is an option for providing a SecretManager.
config/http_config.go:586
Interface
SecretReader
config/http_config.go:771
Struct
Silence
Silence defines the representation of a silence definition in the Prometheus eco-system.
model/silence.go:65
Struct
String
String is a string value evaluated at the set timestamp.
model/value.go:283
Struct
TLSConfig
TLSConfig configures the options for TLS connections.
config/http_config.go:1324
Interface
TLSConfigOption
TLSConfigOption defines an option that can be applied to the HTTP client.
config/http_config.go:1253
Struct
TLSRoundTripperSettings
config/http_config.go:1489
Struct
TextParser
TextParser is used to parse the simple and flat text-based exchange format. TextParser instances must be created with NewTextParser, the zero value o
expfmt/text_parse.go:55
Struct
URL
URL is a custom URL type that allows validation at configuration load time.
config/http_config.go:177
TypeAlias
ValidationScheme
ValidationScheme is a Go enum for determining how metric and label names will be validated by this library.
model/metric.go:64
Interface
Value
Value is a generic interface for values resulting from a query evaluation.
model/value_type.go:22
TypeAlias
ValueType
model/value_type.go:32
TypeAlias
Vector
Vector is basically only an alias for Samples, but the contract is that in a Vector, all Samples have the same timestamp.
model/value.go:305
Struct
authorizationCredentialsRoundTripper
config/http_config.go:860
Struct
basicAuthRoundTripper
config/http_config.go:899
Interface
closeIdler
config/http_config.go:67
Struct
dummyFileSystem
server/static_file_server_test.go:24
Struct
encoderCloser
expfmt/encode.go:64
Struct
encoderOption
expfmt/openmetrics_create.go:31
Struct
errDecoder
errDecoder is an error-state decoder that always returns the same error.
expfmt/decode.go:141
Struct
errReader
expfmt/text_parse_test.go:1415
Struct
expensiveValuer
promslog/slog_test.go:258
Struct
headersRoundTripper
config/headers.go:108
Struct
hostRoundTripper
config/http_config.go:1628
Struct
httpClientOptions
config/http_config.go:499
Struct
jwtSource
jwtSource is a source that always does a signed JWT request for a token. It should typically be wrapped with a reuseTokenSource.
config/oauth_assertion.go:103
Struct
oauth2RoundTripper
config/http_config.go:942
Struct
oauth2TestServerResponse
config/http_config_test.go:1795
Interface
oauth2TokenSourceConfig
config/http_config.go:978
TypeAlias
plain
promslog/slog.go:66
next →
1–100 of 119, ranked by callers