MCPcopy Create free account

hub / github.com/prometheus/common / functions

Functions800 in github.com/prometheus/common

MethodEqual
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
MethodEqual
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
MethodEqual
Equal compares the metrics.
model/metric.go:250
MethodEqual
Equal returns true iff both label sets have exactly the same key/value pairs.
model/labelset.go:45
MethodEqual
(o HistogramBuckets)
model/value_histogram.go:110
MethodEqual
(o *SampleHistogram)
model/value_histogram.go:133
MethodFastFingerprint
FastFingerprint returns the LabelSet's Fingerprint calculated by a faster hashing algorithm, which is, however, more susceptible to hash collisions.
model/labelset.go:133
MethodFetch
(_ context.Context, secretRef string)
config/http_config_test.go:941
MethodFetch
Fetch returns the secret data given a secret name indicated by `secretRef`.
config/http_config.go:767
MethodFetch
(context.Context)
config/http_config.go:784
MethodFetch
(context.Context)
config/http_config.go:804
MethodFetch
(ctx context.Context)
config/http_config.go:826
FunctionFileServe
FileServe returns a new http.HandlerFunc that serves files from dir. Using routes must provide the *filepath parameter.
route/route.go:141
MethodFingerprint
Fingerprint returns a Metric's Fingerprint.
model/metric.go:292
MethodFingerprint
Fingerprint returns the LabelSet's fingerprint.
model/labelset.go:127
FunctionFuzz
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
MethodHead
Head registers a new HEAD route.
route/route.go:118
MethodImmutable
()
config/http_config.go:792
MethodImmutable
()
config/http_config.go:816
MethodImmutable
()
config/http_config.go:834
FunctionInfo
Info returns version, branch and revision information.
version/info.go:73
MethodIsDir
IsDir implements the fs.FileInfo interface.
assets/embed_gzip.go:120
MethodIsValid
IsValid returns true iff the string is a valid UTF-8.
model/labels.go:179
MethodIsValidLegacy
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
MethodLen
()
model/value.go:138
MethodLen
()
model/value.go:327
MethodLen
()
model/alert.go:113
MethodLen
Len implements sort.Interface.
model/fingerprinting.go:49
MethodLen
()
model/labels.go:155
MethodLen
()
model/labels.go:186
MethodLen
()
model/labels.go:208
MethodLess
Less compares first the metrics, then the timestamp.
model/value.go:143
MethodLess
Less compares first the metrics, then the timestamp.
model/value.go:297
MethodLess
(i, j int)
model/value.go:328
MethodLess
(i, j int)
model/alert.go:116
MethodLess
Less implements sort.Interface.
model/fingerprinting.go:54
MethodLess
(i, j int)
model/labels.go:159
MethodLess
(i, j int)
model/labels.go:190
MethodLess
(i, j int)
model/labels.go:212
MethodLogValue
()
promslog/slog_test.go:262
MethodMarshalJSON
MarshalJSON implements json.Marshaler.
model/value.go:74
MethodMarshalJSON
()
model/value.go:193
MethodMarshalJSON
MarshalJSON implements json.Marshaler.
model/value.go:238
MethodMarshalJSON
MarshalJSON implements json.Marshaler.
model/value.go:271
MethodMarshalJSON
MarshalJSON implements json.Marshaler.
model/value_float.go:36
MethodMarshalJSON
()
model/value_float.go:73
MethodMarshalJSON
MarshalJSON implements the json.Marshaler interface.
model/metric.go:117
MethodMarshalJSON
MarshalJSON implements the json.Marshaler interface.
model/time.go:334
MethodMarshalJSON
MarshalJSON implements json.Marshaler.
model/value_type.go:43
MethodMarshalJSON
()
model/value_histogram.go:30
MethodMarshalJSON
()
model/value_histogram.go:53
MethodMarshalJSON
()
model/value_histogram.go:143
MethodMarshalJSON
()
config/headers.go:57
MethodMarshalJSON
MarshalJSON implements the json.Marshaler interface for TLSVersion.
config/http_config.go:114
MethodMarshalJSON
MarshalJSON implements the json.Marshaler interface for URL.
config/http_config.go:231
MethodMarshalJSON
MarshalJSON implements the json.Marshaler interface for Secret.
config/secret/secret.go:53
MethodMarshalYAML
MarshalYAML implements the yaml.Marshaler interface.
model/metric.go:96
MethodMarshalYAML
MarshalYAML implements the yaml.Marshaler interface.
model/time.go:365
MethodMarshalYAML
()
config/http_config.go:91
MethodMarshalYAML
MarshalYAML implements the yaml.Marshaler interface for URLs.
config/http_config.go:195
MethodMarshalYAML
MarshalYAML implements the yaml.Marshaler interface for Secrets.
config/secret/secret.go:36
MethodModTime
ModTime implements the fs.FileInfo interface.
assets/embed_gzip.go:117
MethodMode
Mode implements the fs.FileInfo interface.
assets/embed_gzip.go:114
MethodName
Name implements the fs.FileInfo interface.
assets/embed_gzip.go:105
FunctionNewFormat
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
FunctionNewTLSRoundTripper
( cfg *tls.Config, settings TLSRoundTripperSettings, newRT func(*tls.Config) (http.RoundTripper, error), )
config/http_config.go:1503
MethodOpen
(string)
server/static_file_server_test.go:26
MethodOptions
Options registers a new OPTIONS route.
route/route.go:98
MethodPost
Post registers a new POST route.
route/route.go:113
FunctionPrint
Print returns version information.
version/info.go:51
MethodRead
Read implements the fs.File interface.
assets/embed_gzip.go:82
MethodRead
([]byte)
expfmt/text_parse_test.go:1449
MethodRoundTrip
RoundTrip implements http.RoundTripper.
config/headers.go:114
MethodRoundTrip
(r *http.Request)
config/http_config_test.go:1778
MethodRoundTrip
(req *http.Request)
config/http_config.go:872
MethodRoundTrip
(req *http.Request)
config/http_config.go:910
MethodRoundTrip
(req *http.Request)
config/http_config.go:1069
MethodRoundTrip
(req *http.Request)
config/http_config.go:1199
MethodRoundTrip
(req *http.Request)
config/http_config.go:1647
MethodRoundTrip
(req *http.Request)
config/http_config.go:1659
MethodSet
Set updates the value of the allowed format.
promslog/slog.go:131
MethodSet
Set implements pflag/flag.Value.
model/time.go:196
MethodSetDirectory
SetDirectory make headers file relative to the configuration file.
config/headers.go:63
MethodSetDirectory
SetDirectory makes headers file relative to the configuration file.
config/headers.go:90
MethodSetDirectory
SetDirectory joins any relative file paths with dir.
config/http_config.go:149
MethodSetDirectory
SetDirectory joins any relative file paths with dir.
config/http_config.go:167
MethodSetDirectory
SetDirectory joins any relative file paths with dir.
config/http_config.go:298
MethodSetDirectory
SetDirectory joins any relative file paths with dir.
config/http_config.go:362
MethodSetDirectory
SetDirectory joins any relative file paths with dir.
config/http_config.go:1361
FunctionSlog
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
MethodString
()
model/value.go:60
MethodString
()
model/value.go:181
MethodString
()
model/value.go:233
MethodString
()
model/value.go:266
MethodString
()
model/value.go:285
MethodString
()
model/value.go:331
MethodString
()
model/alert.go:55
MethodString
()
model/value_float.go:97
MethodString
()
model/metric.go:266
MethodString
()
model/metric.go:552
← previousnext →401–500 of 800, ranked by callers