MCPcopy Create free account

hub / github.com/prometheus/common / functions

Functions539 in github.com/prometheus/common

↓ 1 callersFunctionwriteLabelPairs
writeLabelPairs converts a slice of LabelPair proto messages plus the explicitly given additional label pair into text formatted as required by the te
expfmt/text_create.go:340
↓ 1 callersFunctionwriteOpenMetricsSample
writeOpenMetricsSample writes a single sample in OpenMetrics text format to w, given the metric name, the metric proto message itself, optionally an a
expfmt/openmetrics_create.go:298
↓ 1 callersFunctionwriteSample
writeSample writes a single sample in text format to w, given the metric name, the metric proto message itself, optionally an additional label name wi
expfmt/text_create.go:276
↓ 1 callersFunctionwriteUint
writeUint is like writeInt just for uint64.
expfmt/openmetrics_create.go:521
FunctionAddFlags
AddFlags adds the flags used by this package to the Kingpin application. To use the default Kingpin application, call AddFlags(kingpin.CommandLine)
promlog/flag/flag.go:40
MethodBefore
Before compares the metrics' underlying label sets.
model/metric.go:38
MethodBefore
Before compares the metrics, using the following criteria: If m has fewer labels than o, it is before o. If it has more, it is not. If the number of
model/labelset.go:72
FunctionBenchmarkCreate
(b *testing.B)
expfmt/text_create_test.go:359
FunctionBenchmarkCreateBuildInfo
(b *testing.B)
expfmt/text_create_test.go:459
FunctionBenchmarkDiscriminatorHTTPHeader
(b *testing.B)
expfmt/decode_test.go:425
FunctionBenchmarkEmptyLabelSignature
(b *testing.B)
model/signature_test.go:261
FunctionBenchmarkJSONMarshallingSampleHistogramPairMatrix
(b *testing.B)
model/value_histogram_test.go:750
FunctionBenchmarkJSONMarshallingSamplePairMatrix
(b *testing.B)
model/value_float_test.go:300
FunctionBenchmarkLabelNames
(b *testing.B)
model/labels_test.go:51
FunctionBenchmarkLabelToSignatureDouble
(b *testing.B)
model/signature_test.go:205
FunctionBenchmarkLabelToSignatureScalar
(b *testing.B)
model/signature_test.go:197
FunctionBenchmarkLabelToSignatureSingle
(b *testing.B)
model/signature_test.go:201
FunctionBenchmarkLabelToSignatureTriple
(b *testing.B)
model/signature_test.go:209
FunctionBenchmarkLabelValues
(b *testing.B)
model/labels_test.go:87
FunctionBenchmarkMetric
(b *testing.B)
model/metric_test.go:79
FunctionBenchmarkMetricToFastFingerprintDouble
(b *testing.B)
model/signature_test.go:253
FunctionBenchmarkMetricToFastFingerprintScalar
(b *testing.B)
model/signature_test.go:245
FunctionBenchmarkMetricToFastFingerprintSingle
(b *testing.B)
model/signature_test.go:249
FunctionBenchmarkMetricToFastFingerprintTriple
(b *testing.B)
model/signature_test.go:257
FunctionBenchmarkMetricToFastFingerprintTripleConc1
(b *testing.B)
model/signature_test.go:311
FunctionBenchmarkMetricToFastFingerprintTripleConc2
(b *testing.B)
model/signature_test.go:315
FunctionBenchmarkMetricToFastFingerprintTripleConc4
(b *testing.B)
model/signature_test.go:319
FunctionBenchmarkMetricToFastFingerprintTripleConc8
(b *testing.B)
model/signature_test.go:323
FunctionBenchmarkMetricToFingerprintDouble
(b *testing.B)
model/signature_test.go:229
FunctionBenchmarkMetricToFingerprintScalar
(b *testing.B)
model/signature_test.go:221
FunctionBenchmarkMetricToFingerprintSingle
(b *testing.B)
model/signature_test.go:225
FunctionBenchmarkMetricToFingerprintTriple
(b *testing.B)
model/signature_test.go:233
FunctionBenchmarkOpenMetricsCreate
(b *testing.B)
expfmt/openmetrics_create_test.go:446
FunctionBenchmarkParseDuration
(b *testing.B)
model/time_test.go:381
FunctionBenchmarkParseError
(b *testing.B)
expfmt/text_parse_test.go:665
FunctionBenchmarkParseProto
BenchmarkParseProto benchmarks the parsing of a protobuf-format scrape into metric family DTOs. Note that this does not build a map of metric families
expfmt/bench_test.go:92
FunctionBenchmarkParseProtoGzip
BenchmarkParseProtoGzip is like BenchmarkParseProto above, but parses gzipped protobuf format.
expfmt/bench_test.go:120
FunctionBenchmarkParseProtoMap
BenchmarkParseProtoMap is like BenchmarkParseProto but DOES put the parsed metric family DTOs into a map. This is not happening during Prometheus inge
expfmt/bench_test.go:154
FunctionBenchmarkParseText
Benchmarks to show how much penalty text format parsing actually inflicts. Example results on Linux 3.13.0, Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
expfmt/bench_test.go:50
FunctionBenchmarkParseTextGzip
BenchmarkParseTextGzip benchmarks the parsing of a gzipped text-format scrape into metric family DTOs.
expfmt/bench_test.go:67
FunctionBenchmarkTextParse
(b *testing.B)
expfmt/text_parse_test.go:425
FunctionBuildContext
BuildContext returns goVersion, platform, buildUser and buildDate information.
version/info.go:101
MethodClose
Close implements the fs.File interface.
assets/embed_gzip.go:95
MethodClose
()
expfmt/encode.go:54
MethodCloseIdleConnections
()
config/http_config.go:610
MethodCloseIdleConnections
()
config/http_config.go:644
MethodCloseIdleConnections
()
config/http_config.go:693
MethodCloseIdleConnections
()
config/http_config.go:803
MethodCloseIdleConnections
()
config/http_config.go:1182
MethodDecode
Decode implements the Decoder interface.
expfmt/decode.go:89
MethodDecode
Decode implements the Decoder interface.
expfmt/decode.go:126
MethodEncode
(v *dto.MetricFamily)
expfmt/encode.go:50
MethodEqual
Equal compares two sets of samples and returns true if they are equal.
model/value.go:161
MethodEqual
Equal compares two sets of samples and returns true if they are equal.
model/value.go:332
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:55
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:92
MethodEqual
Equal compares the metrics.
model/metric.go:33
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:109
MethodEqual
(o *SampleHistogram)
model/value_histogram.go:132
MethodFastFingerprint
FastFingerprint returns the LabelSet's Fingerprint calculated by a faster hashing algorithm, which is, however, more susceptible to hash collisions.
model/labelset.go:149
FunctionFileServe
FileServe returns a new http.HandlerFunc that serves files from dir. Using routes must provide the *filepath parameter.
route/route.go:131
MethodFingerprint
Fingerprint returns a Metric's Fingerprint.
model/metric.go:77
MethodFingerprint
Fingerprint returns the LabelSet's fingerprint.
model/labelset.go:143
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:28
FunctionGetRevision
()
version/info_default.go:19
MethodHead
Head registers a new HEAD route.
route/route.go:113
FunctionInfo
Info returns version, branch and revision information.
version/info.go:96
MethodIsDir
IsDir implements the fs.FileInfo interface.
assets/embed_gzip.go:120
MethodIsValid
IsValid returns true iff the string is a valid UTF8.
model/labels.go:168
MethodLen
()
model/value.go:138
MethodLen
()
model/value.go:348
MethodLen
()
model/alert.go:107
MethodLen
Len implements sort.Interface.
model/fingerprinting.go:49
MethodLen
()
model/labels.go:144
MethodLen
()
model/labels.go:175
MethodLen
()
model/labels.go:197
MethodLen
()
internal/bitbucket.org/ww/goautoneg/autoneg.go:57
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:318
MethodLess
(i, j int)
model/value.go:349
MethodLess
(i, j int)
model/alert.go:110
MethodLess
Less implements sort.Interface.
model/fingerprinting.go:54
MethodLess
(i, j int)
model/labels.go:148
MethodLess
(i, j int)
model/labels.go:179
MethodLess
(i, j int)
model/labels.go:201
MethodLess
(i, j int)
internal/bitbucket.org/ww/goautoneg/autoneg.go:62
MethodMarshalJSON
MarshalJSON implements json.Marshaler.
model/value.go:74
MethodMarshalJSON
()
model/value.go:193
MethodMarshalJSON
MarshalJSON implements json.Marshaler.
model/value.go:259
MethodMarshalJSON
MarshalJSON implements json.Marshaler.
model/value.go:292
MethodMarshalJSON
MarshalJSON implements json.Marshaler.
model/value_float.go:35
MethodMarshalJSON
()
model/value_float.go:72
MethodMarshalJSON
MarshalJSON implements the json.Marshaler interface.
model/time.go:293
MethodMarshalJSON
MarshalJSON implements json.Marshaler.
model/value_type.go:43
MethodMarshalJSON
()
model/value_histogram.go:29
MethodMarshalJSON
()
model/value_histogram.go:52
MethodMarshalJSON
()
model/value_histogram.go:142
MethodMarshalJSON
MarshalJSON implements the json.Marshaler interface for TLSVersion.
config/http_config.go:107
MethodMarshalJSON
MarshalJSON implements the json.Marshaler interface for URL.
config/http_config.go:218
← previousnext →201–300 of 539, ranked by callers