Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/prometheus/common
/ functions
Functions
800 in github.com/prometheus/common
⨍
Functions
800
◇
Types & classes
130
Method
Equal
Equal returns true if the value of v and o is equal or if both are NaN. Note that v==o is false if both are NaN. If you want the conventional float be
model/value_float.go:56
Method
Equal
Equal returns true if this SamplePair and o have equal Values and equal Timestamps. The semantics of Value equality is defined by SampleValue.Equal.
model/value_float.go:93
Method
Equal
Equal compares the metrics.
model/metric.go:250
Method
Equal
Equal returns true iff both label sets have exactly the same key/value pairs.
model/labelset.go:45
Method
Equal
(o HistogramBuckets)
model/value_histogram.go:110
Method
Equal
(o *SampleHistogram)
model/value_histogram.go:133
Method
FastFingerprint
FastFingerprint returns the LabelSet's Fingerprint calculated by a faster hashing algorithm, which is, however, more susceptible to hash collisions.
model/labelset.go:133
Method
Fetch
(_ context.Context, secretRef string)
config/http_config_test.go:941
Method
Fetch
Fetch returns the secret data given a secret name indicated by `secretRef`.
config/http_config.go:767
Method
Fetch
(context.Context)
config/http_config.go:784
Method
Fetch
(context.Context)
config/http_config.go:804
Method
Fetch
(ctx context.Context)
config/http_config.go:826
Function
FileServe
FileServe returns a new http.HandlerFunc that serves files from dir. Using routes must provide the *filepath parameter.
route/route.go:141
Method
Fingerprint
Fingerprint returns a Metric's Fingerprint.
model/metric.go:292
Method
Fingerprint
Fingerprint returns the LabelSet's fingerprint.
model/labelset.go:127
Function
Fuzz
Fuzz text metric parser with with github.com/dvyukov/go-fuzz: go-fuzz-build github.com/prometheus/common/expfmt go-fuzz -bin expfmt-fuzz.zip -workd
expfmt/fuzz.go:31
Method
Head
Head registers a new HEAD route.
route/route.go:118
Method
Immutable
()
config/http_config.go:792
Method
Immutable
()
config/http_config.go:816
Method
Immutable
()
config/http_config.go:834
Function
Info
Info returns version, branch and revision information.
version/info.go:73
Method
IsDir
IsDir implements the fs.FileInfo interface.
assets/embed_gzip.go:120
Method
IsValid
IsValid returns true iff the string is a valid UTF-8.
model/labels.go:179
Method
IsValidLegacy
IsValidLegacy returns true iff name matches the pattern of LabelNameRE for legacy names. It does not use LabelNameRE for the check but a much faster h
model/labels.go:122
Method
Len
()
model/value.go:138
Method
Len
()
model/value.go:327
Method
Len
()
model/alert.go:113
Method
Len
Len implements sort.Interface.
model/fingerprinting.go:49
Method
Len
()
model/labels.go:155
Method
Len
()
model/labels.go:186
Method
Len
()
model/labels.go:208
Method
Less
Less compares first the metrics, then the timestamp.
model/value.go:143
Method
Less
Less compares first the metrics, then the timestamp.
model/value.go:297
Method
Less
(i, j int)
model/value.go:328
Method
Less
(i, j int)
model/alert.go:116
Method
Less
Less implements sort.Interface.
model/fingerprinting.go:54
Method
Less
(i, j int)
model/labels.go:159
Method
Less
(i, j int)
model/labels.go:190
Method
Less
(i, j int)
model/labels.go:212
Method
LogValue
()
promslog/slog_test.go:262
Method
MarshalJSON
MarshalJSON implements json.Marshaler.
model/value.go:74
Method
MarshalJSON
()
model/value.go:193
Method
MarshalJSON
MarshalJSON implements json.Marshaler.
model/value.go:238
Method
MarshalJSON
MarshalJSON implements json.Marshaler.
model/value.go:271
Method
MarshalJSON
MarshalJSON implements json.Marshaler.
model/value_float.go:36
Method
MarshalJSON
()
model/value_float.go:73
Method
MarshalJSON
MarshalJSON implements the json.Marshaler interface.
model/metric.go:117
Method
MarshalJSON
MarshalJSON implements the json.Marshaler interface.
model/time.go:334
Method
MarshalJSON
MarshalJSON implements json.Marshaler.
model/value_type.go:43
Method
MarshalJSON
()
model/value_histogram.go:30
Method
MarshalJSON
()
model/value_histogram.go:53
Method
MarshalJSON
()
model/value_histogram.go:143
Method
MarshalJSON
()
config/headers.go:57
Method
MarshalJSON
MarshalJSON implements the json.Marshaler interface for TLSVersion.
config/http_config.go:114
Method
MarshalJSON
MarshalJSON implements the json.Marshaler interface for URL.
config/http_config.go:231
Method
MarshalJSON
MarshalJSON implements the json.Marshaler interface for Secret.
config/secret/secret.go:53
Method
MarshalYAML
MarshalYAML implements the yaml.Marshaler interface.
model/metric.go:96
Method
MarshalYAML
MarshalYAML implements the yaml.Marshaler interface.
model/time.go:365
Method
MarshalYAML
()
config/http_config.go:91
Method
MarshalYAML
MarshalYAML implements the yaml.Marshaler interface for URLs.
config/http_config.go:195
Method
MarshalYAML
MarshalYAML implements the yaml.Marshaler interface for Secrets.
config/secret/secret.go:36
Method
ModTime
ModTime implements the fs.FileInfo interface.
assets/embed_gzip.go:117
Method
Mode
Mode implements the fs.FileInfo interface.
assets/embed_gzip.go:114
Method
Name
Name implements the fs.FileInfo interface.
assets/embed_gzip.go:105
Function
NewFormat
NewFormat generates a new Format from the type provided. Mostly used for tests, most Formats should be generated as part of content negotiation in enc
expfmt/expfmt.go:97
Function
NewTLSRoundTripper
( cfg *tls.Config, settings TLSRoundTripperSettings, newRT func(*tls.Config) (http.RoundTripper, error), )
config/http_config.go:1503
Method
Open
(string)
server/static_file_server_test.go:26
Method
Options
Options registers a new OPTIONS route.
route/route.go:98
Method
Post
Post registers a new POST route.
route/route.go:113
Function
Print
Print returns version information.
version/info.go:51
Method
Read
Read implements the fs.File interface.
assets/embed_gzip.go:82
Method
Read
([]byte)
expfmt/text_parse_test.go:1449
Method
RoundTrip
RoundTrip implements http.RoundTripper.
config/headers.go:114
Method
RoundTrip
(r *http.Request)
config/http_config_test.go:1778
Method
RoundTrip
(req *http.Request)
config/http_config.go:872
Method
RoundTrip
(req *http.Request)
config/http_config.go:910
Method
RoundTrip
(req *http.Request)
config/http_config.go:1069
Method
RoundTrip
(req *http.Request)
config/http_config.go:1199
Method
RoundTrip
(req *http.Request)
config/http_config.go:1647
Method
RoundTrip
(req *http.Request)
config/http_config.go:1659
Method
Set
Set updates the value of the allowed format.
promslog/slog.go:131
Method
Set
Set implements pflag/flag.Value.
model/time.go:196
Method
SetDirectory
SetDirectory make headers file relative to the configuration file.
config/headers.go:63
Method
SetDirectory
SetDirectory makes headers file relative to the configuration file.
config/headers.go:90
Method
SetDirectory
SetDirectory joins any relative file paths with dir.
config/http_config.go:149
Method
SetDirectory
SetDirectory joins any relative file paths with dir.
config/http_config.go:167
Method
SetDirectory
SetDirectory joins any relative file paths with dir.
config/http_config.go:298
Method
SetDirectory
SetDirectory joins any relative file paths with dir.
config/http_config.go:362
Method
SetDirectory
SetDirectory joins any relative file paths with dir.
config/http_config.go:1361
Function
Slog
Slog returns a slice of strings for use with structured logging. Example: logger := promslog.New(&promslog.Config{}) logger.Info("Starting Prometheus
version/info.go:87
Method
String
()
model/value.go:60
Method
String
()
model/value.go:181
Method
String
()
model/value.go:233
Method
String
()
model/value.go:266
Method
String
()
model/value.go:285
Method
String
()
model/value.go:331
Method
String
()
model/alert.go:55
Method
String
()
model/value_float.go:97
Method
String
()
model/metric.go:266
Method
String
()
model/metric.go:552
← previous
next →
401–500 of 800, ranked by callers