MCPcopy Create free account

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

Types & classes130 in github.com/prometheus/common

↓ 15 callersTypeAliasSampleValue
A SampleValue is a representation of a value for a given sample at a given time.
model/value_float.go:33
↓ 13 callersTypeAliasLabelValue
A LabelValue is an associated value for a LabelName.
model/labels.go:176
↓ 11 callersTypeAliasTime
Time is the number of milliseconds since the epoch (1970-01-01 00:00 UTC) excluding leap seconds.
model/time.go:45
↓ 9 callersTypeAliasLabelName
A LabelName is a key for a LabelSet or Metric. It has a value associated therewith.
model/labels.go:104
↓ 7 callersTypeAliasMetric
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
↓ 7 callersTypeAliasSecret
Secret special type for storing secrets. Secret values are redacted when marshalled, unless config.MarshalSecretValue is set to true.
config/secret/secret.go:33
↓ 7 callersFuncTypehttpClientOptionFunc
func(options *httpClientOptions)
config/http_config.go:513
↓ 6 callersTypeAliasFormat
Format specifies the HTTP content type of the different wire protocols. The Content-Type values for the different wire protocols represent baseline Co
expfmt/expfmt.go:53
↓ 5 callersTypeAliasFingerprint
Fingerprint provides a hash-capable representation of a Metric. For our purposes, FNV-1A 64-bit is used.
model/fingerprinting.go:23
↓ 5 callersTypeAliasLabelSet
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
↓ 5 callersTypeAliasTLSVersion
config/http_config.go:69
↓ 5 callersInterfaceenhancedWriter
enhancedWriter has all the enhanced write functions needed here. bufio.Writer implements it.
expfmt/text_create.go:32
↓ 3 callersTypeAliasFloatString
model/value_histogram.go:24
↓ 3 callersTypeAliasparam
route/route.go:28
↓ 2 callersTypeAliasDuration
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 callersTypeAliasAlertStatus
model/alert.go:22
↓ 1 callersTypeAliasMetricType
MetricType represents metric type values.
model/metadata.go:17
StructAlert
Alert is a generic representation of an alert in the Prometheus eco-system.
model/alert.go:30
TypeAliasAlerts
Alert is a list of alerts that can be sorted in chronological order.
model/alert.go:111
StructAuthorization
Authorization contains HTTP authorization credentials.
config/http_config.go:158
StructBasicAuth
BasicAuth contains basic HTTP authentication credentials.
config/http_config.go:137
InterfaceCloser
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:97
StructConfig
Config is a struct containing configurable settings for the logger.
promslog/slog.go:142
StructDecodeOptions
DecodeOptions contains options used by the Decoder and in sample extraction.
expfmt/decode.go:36
InterfaceDecoder
Decoder types decode an input stream into metric families.
expfmt/decode.go:31
FuncTypeDialContextFunc
DialContextFunc defines the signature of the DialContext() function implemented by net.Dialer.
config/http_config.go:492
InterfaceDirectorySetter
DirectorySetter is a config type that contains file paths that may be relative to the file containing the config.
config/config.go:67
InterfaceEncoder
Encoder types encode metric families into an underlying wire protocol.
expfmt/encode.go:86
FuncTypeEncoderOption
func(*encoderOption)
expfmt/openmetrics_create.go:35
TypeAliasEscapingScheme
model/metric.go:204
StructFile
assets/embed_gzip.go:63
StructFileInfo
assets/embed_gzip.go:99
StructFileSecret
config/http_config.go:796
StructFileSystem
assets/embed_gzip.go:28
TypeAliasFingerprintSet
FingerprintSet is a set of Fingerprints.
model/fingerprinting.go:64
TypeAliasFingerprints
Fingerprints represents a collection of Fingerprint subject to a given natural sorting scheme. It implements sort.Interface.
model/fingerprinting.go:46
StructFormat
Format controls a logging output format. Not concurrency-safe.
promslog/slog.go:119
TypeAliasFormatType
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:82
StructHTTPClientConfig
HTTPClientConfig configures an HTTP client.
config/http_config.go:331
InterfaceHTTPClientOption
HTTPClientOption defines an option that can be applied to the HTTP client.
config/http_config.go:509
StructHeader
Header represents the configuration for a single HTTP header.
config/headers.go:83
StructHeaders
Headers represents the configuration for HTTP headers.
config/headers.go:53
StructHistogramBucket
model/value_histogram.go:46
TypeAliasHistogramBuckets
model/value_histogram.go:108
StructInlineSecret
config/http_config.go:776
StructInterval
Interval describes an interval between two timestamps.
model/time.go:48
StructJwtGrantTypeConfig
Config is the configuration for using JWT to fetch tokens, commonly known as "two-legged OAuth 2.0".
config/oauth_assertion.go:39
TypeAliasLabelNames
LabelNames is a sortable LabelName slice. In implements sort.Interface.
model/labels.go:153
StructLabelPair
LabelPair pairs a name with a value.
model/labels.go:199
TypeAliasLabelPairs
LabelPairs is a sortable slice of LabelPair pointers. It implements sort.Interface.
model/labels.go:206
TypeAliasLabelValues
LabelValues is a sortable LabelValue slice. It implements sort.Interface.
model/labels.go:184
StructLevel
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
TypeAliasLogStyle
LogStyle represents the common logging formats in the Prometheus ecosystem.
promslog/slog.go:32
StructMatcher
Matcher describes a matches the value of a given label.
model/silence.go:25
TypeAliasMatrix
Matrix is a list of time series.
model/value.go:325
FuncTypeNewTLSConfigFunc
NewTLSConfigFunc returns tls.Config.
config/http_config.go:495
StructOAuth2
OAuth2 is the oauth2 client configuration.
config/http_config.go:239
StructParseError
ParseError signals errors while parsing the simple and flat text-based exchange format.
expfmt/text_parse.go:41
StructProxyConfig
config/http_config.go:1680
TypeAliasProxyHeader
config/config.go:42
StructRouter
Router wraps httprouter.Router and adds support for prefixed sub-routers, per-request context injections and instrumentation.
route/route.go:46
StructSample
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
StructSampleDecoder
SampleDecoder wraps a Decoder to extract samples from the metric families decoded by the wrapped Decoder.
expfmt/decode.go:254
StructSampleHistogram
model/value_histogram.go:123
StructSampleHistogramPair
model/value_histogram.go:137
StructSamplePair
SamplePair pairs a SampleValue with a Timestamp.
model/value_float.go:68
StructSampleStream
SampleStream is a stream of Values belonging to an attached COWMetric.
model/value.go:175
TypeAliasSamples
Samples is a sortable Sample slice. It implements sort.Interface.
model/value.go:136
StructScalar
Scalar is a scalar value evaluated at the set timestamp.
model/value.go:228
InterfaceSecretManager
SecretManager manages secret data mapped to names known as "references" or "refs".
config/http_config.go:765
InterfaceSecretManagerOption
SecretManagerOption is an option for providing a SecretManager.
config/http_config.go:584
InterfaceSecretReader
config/http_config.go:770
StructSilence
Silence defines the representation of a silence definition in the Prometheus eco-system.
model/silence.go:65
StructString
String is a string value evaluated at the set timestamp.
model/value.go:261
StructTLSConfig
TLSConfig configures the options for TLS connections.
config/http_config.go:1328
InterfaceTLSConfigOption
TLSConfigOption defines an option that can be applied to the HTTP client.
config/http_config.go:1257
StructTLSRoundTripperSettings
config/http_config.go:1493
StructTextParser
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
StructURL
URL is a custom URL type that allows validation at configuration load time.
config/http_config.go:175
TypeAliasValidationScheme
ValidationScheme is a Go enum for determining how metric and label names will be validated by this library.
model/metric.go:64
InterfaceValue
Value is a generic interface for values resulting from a query evaluation.
model/value_type.go:22
TypeAliasValueType
model/value_type.go:32
TypeAliasVector
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:283
StructauthorizationCredentialsRoundTripper
config/http_config.go:859
StructbasicAuthRoundTripper
config/http_config.go:898
InterfacecloseIdler
config/http_config.go:65
StructdummyFileSystem
server/static_file_server_test.go:24
StructencoderCloser
expfmt/encode.go:101
StructencoderOption
expfmt/openmetrics_create.go:31
StructerrDecoder
errDecoder is an error-state decoder that always returns the same error.
expfmt/decode.go:174
StructerrReader
expfmt/text_parse_test.go:1445
StructexpensiveValuer
promslog/slog_test.go:258
StructheadersRoundTripper
config/headers.go:108
StructhostRoundTripper
config/http_config.go:1632
StructhttpClientOptions
config/http_config.go:497
StructjwtSource
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
Structoauth2RoundTripper
config/http_config.go:941
Structoauth2TestServerResponse
config/http_config_test.go:1795
Interfaceoauth2TokenSourceConfig
config/http_config.go:977
StructopenMetrics20Decoder
openMetrics20Decoder implements the Decoder interface for the OpenMetrics 2.0 protocol. Like openMetricsDecoder, it uses goabnf.ParseForest per line w
expfmt/decode.go:204
next →1–100 of 130, ranked by callers