MCPcopy Create free account

hub / github.com/prometheus/common / functions

Functions800 in github.com/prometheus/common

↓ 1 callersFunctionmatchFormat
matchFormat checks if a parsed accept clause matches a given Format.
expfmt/encode.go:175
↓ 1 callersFunctionmetricNeedsEscaping
(m *dto.Metric)
model/metric.go:389
↓ 1 callersFunctionnewClient
NewClient returns a http.Client using the specified http.RoundTripper.
config/http_config.go:597
↓ 1 callersFunctionnewGoKitStyleReplaceAttrFunc
(lvl *Level)
promslog/slog.go:149
↓ 1 callersMethodnewOauth2TokenSource
(req *http.Request, clientCredential string)
config/http_config.go:981
↓ 1 callersFunctionnewOpenMetrics20Parser
(r io.Reader, scheme model.ValidationScheme)
expfmt/openmetrics_2_0_parse.go:223
↓ 1 callersFunctionnewOpenMetricsParser
(r io.Reader, scheme model.ValidationScheme)
expfmt/openmetrics_parse.go:189
↓ 1 callersFunctionoriginalRequestHost
(req *http.Request)
config/http_config.go:1171
↓ 1 callersFunctionparseCompositeHistogram
( lineNum int, input []byte, compNode *goabnf.ParseTree, mfName string, labels []*dto.LabelPair, isGauge
expfmt/openmetrics_2_0_parse.go:854
↓ 1 callersFunctionparseCompositeSummary
( lineNum int, input []byte, compNode *goabnf.ParseTree, mfName string, labels []*dto.LabelPair, startTS
expfmt/openmetrics_2_0_parse.go:757
↓ 1 callersFunctionparseExactDecimalTimestamp
(s string)
expfmt/openmetrics_parse.go:1058
↓ 1 callersMethodparseExemplar
(input []byte, node *goabnf.ParseTree)
expfmt/openmetrics_2_0_parse.go:752
↓ 1 callersFunctionparseNativeSpans
(lineNum int, input []byte, node *goabnf.ParseTree)
expfmt/openmetrics_2_0_parse.go:1152
↓ 1 callersFunctionpopulateNativeBuckets
( lineNum int, h *dto.Histogram, isFloat bool, negStrs, posStrs []string, )
expfmt/openmetrics_2_0_parse.go:1192
↓ 1 callersMethodreadTokenAsLabelName
readTokenAsLabelName copies a label name from p.buf into p.currentToken. The first byte considered is the byte already read (now in p.currentByte). Th
expfmt/text_parse.go:817
↓ 1 callersMethodreadTokenAsLabelValue
readTokenAsLabelValue copies a label value from p.buf into p.currentToken. In contrast to the other 'readTokenAs...' functions, which start with the l
expfmt/text_parse.go:868
↓ 1 callersMethodresolveSampleFamily
(sampleName string)
expfmt/openmetrics_2_0_parse.go:486
↓ 1 callersMethodresolveSampleFamily
(sampleName string)
expfmt/openmetrics_parse.go:453
↓ 1 callersMethodstartOfLine
startOfLine represents the state where the next byte read from p.buf is the start of a line (or whitespace leading up to it).
expfmt/text_parse.go:195
↓ 1 callersFunctionsummaryMetricName
(name string)
expfmt/text_parse.go:978
↓ 1 callersMethodvalidateAndBuildLabels
(mfName string, rawLabels []parsedLabel)
expfmt/openmetrics_2_0_parse.go:721
↓ 1 callersFunctionvalidateClassicBuckets
( name string, h *dto.Histogram, sampleCount float64, sampleCountUint uint64, isFloatCount bool, isGauge
expfmt/openmetrics_2_0_create.go:966
↓ 1 callersFunctionvalidateExemplar20
(e *dto.Exemplar)
expfmt/openmetrics_2_0_create.go:1155
↓ 1 callersFunctionvalidateNativeHistogram
(name string, h *dto.Histogram)
expfmt/openmetrics_2_0_create.go:709
↓ 1 callersFunctionvalidateSpansAndBuckets
( name string, spanName string, spans []*dto.BucketSpan, deltas []int64, floatCounts []float64, )
expfmt/openmetrics_2_0_create.go:736
↓ 1 callersFunctionwriteCertificateAndKey
(path string, cert *x509.Certificate, key *rsa.PrivateKey)
config/generate.go:164
↓ 1 callersFunctionwriteClassicBuckets
( w enhancedWriter, h *dto.Histogram, sampleCount float64, sampleCountUint uint64, isFloatCount bool, is
expfmt/openmetrics_2_0_create.go:1044
↓ 1 callersFunctionwriteExemplar
writeExemplar writes the provided exemplar in OpenMetrics format to w. The function returns the number of bytes written and any error encountered.
expfmt/openmetrics_create.go:608
↓ 1 callersFunctionwriteNameAndLabelPairs
writeNameAndLabelPairs converts a slice of LabelPair proto messages plus the explicitly given metric name and additional label pair into text formatte
expfmt/text_create.go:354
↓ 1 callersFunctionwriteNanos
(w enhancedWriter, nanos int64)
expfmt/openmetrics_2_0_create.go:1195
↓ 1 callersFunctionwriteNativeBuckets
(w enhancedWriter, h *dto.Histogram, isGauge bool)
expfmt/openmetrics_2_0_create.go:794
↓ 1 callersFunctionwriteOpenMetricsCreated
writeOpenMetricsCreated writes the created timestamp for a single time series following OpenMetrics text format to w, given the metric name, the metri
expfmt/openmetrics_create.go:569
↓ 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:397
↓ 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:300
↓ 1 callersFunctionwriteSpansAndBuckets
( w enhancedWriter, spansPrefix string, bucketsPrefix string, spans []*dto.BucketSpan, deltas []int64, f
expfmt/openmetrics_2_0_create.go:863
FunctionAddFlags
AddFlags adds the flags used by this package to the Kingpin application. To use the default Kingpin application, call AddFlags(kingpin.CommandLine).
promslog/flag/flag.go:44
MethodBefore
Before compares the metrics' underlying label sets.
model/metric.go:255
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
FunctionBenchmarkConvertMetricFamily
(b *testing.B)
expfmt/benchmark_test.go:188
FunctionBenchmarkCreateBuildInfo
(b *testing.B)
expfmt/text_create_test.go:592
FunctionBenchmarkDiscriminatorHTTPHeader
(b *testing.B)
expfmt/decode_test.go:527
FunctionBenchmarkEmptyLabelSignature
(b *testing.B)
model/signature_test.go:260
FunctionBenchmarkJSONMarshallingSampleHistogramPairMatrix
(b *testing.B)
model/value_histogram_test.go:752
FunctionBenchmarkJSONMarshallingSamplePairMatrix
(b *testing.B)
model/value_float_test.go:302
FunctionBenchmarkLabelNames
(b *testing.B)
model/labels_test.go:52
FunctionBenchmarkLabelSetStringMethod
Benchmark Results for LabelSet's String() method -----------------------------------------------------------------------------------------------------
model/labelset_test.go:164
FunctionBenchmarkLabelToSignatureDouble
(b *testing.B)
model/signature_test.go:206
FunctionBenchmarkLabelToSignatureScalar
(b *testing.B)
model/signature_test.go:198
FunctionBenchmarkLabelToSignatureSingle
(b *testing.B)
model/signature_test.go:202
FunctionBenchmarkLabelToSignatureTriple
(b *testing.B)
model/signature_test.go:210
FunctionBenchmarkLabelValues
(b *testing.B)
model/labels_test.go:88
FunctionBenchmarkMetric
(b *testing.B)
model/metric_test.go:100
FunctionBenchmarkMetricToFastFingerprintDouble
(b *testing.B)
model/signature_test.go:252
FunctionBenchmarkMetricToFastFingerprintScalar
(b *testing.B)
model/signature_test.go:244
FunctionBenchmarkMetricToFastFingerprintSingle
(b *testing.B)
model/signature_test.go:248
FunctionBenchmarkMetricToFastFingerprintTriple
(b *testing.B)
model/signature_test.go:256
FunctionBenchmarkMetricToFastFingerprintTripleConc1
(b *testing.B)
model/signature_test.go:309
FunctionBenchmarkMetricToFastFingerprintTripleConc2
(b *testing.B)
model/signature_test.go:313
FunctionBenchmarkMetricToFastFingerprintTripleConc4
(b *testing.B)
model/signature_test.go:317
FunctionBenchmarkMetricToFastFingerprintTripleConc8
(b *testing.B)
model/signature_test.go:321
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
FunctionBenchmarkNegotiate
(b *testing.B)
expfmt/encode_test.go:664
FunctionBenchmarkNegotiateAccept
(b *testing.B)
expfmt/encode_test.go:684
FunctionBenchmarkNegotiateIncludingOpenMetrics
(b *testing.B)
expfmt/encode_test.go:674
FunctionBenchmarkNopLogger
(b *testing.B)
promslog/slog_test.go:281
FunctionBenchmarkParseDuration
(b *testing.B)
model/time_test.go:483
FunctionBenchmarkParseError
(b *testing.B)
expfmt/text_parse_test.go:1411
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:90
FunctionBenchmarkParseProtoGzip
BenchmarkParseProtoGzip is like BenchmarkParseProto above, but parses gzipped protobuf format.
expfmt/bench_test.go:116
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:146
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:56
FunctionBenchmarkParseTextGzip
BenchmarkParseTextGzip benchmarks the parsing of a gzipped text-format scrape into metric family DTOs.
expfmt/bench_test.go:70
FunctionBenchmarkSamplesJSONUnmarshal
(b *testing.B)
model/api_bench_test.go:102
FunctionBenchmarkTextParse
(b *testing.B)
expfmt/text_parse_test.go:997
FunctionBenchmarkUnmarshalTime
(b *testing.B)
model/time_test.go:492
FunctionBuildContext
BuildContext returns goVersion, platform, buildUser and buildDate information.
version/info.go:78
MethodClient
Client returns an HTTP client wrapping the context's HTTP transport and adding Authorization headers with tokens obtained from c. The returned client
config/oauth_assertion.go:97
MethodClose
Close implements the fs.File interface.
assets/embed_gzip.go:95
MethodClose
()
expfmt/encode.go:110
MethodCloseIdleConnections
CloseIdleConnections implements closeIdler.
config/headers.go:135
MethodCloseIdleConnections
()
config/http_config.go:892
MethodCloseIdleConnections
()
config/http_config.go:935
MethodCloseIdleConnections
()
config/http_config.go:1128
MethodCloseIdleConnections
()
config/http_config.go:1209
MethodCloseIdleConnections
()
config/http_config.go:1653
MethodCloseIdleConnections
()
config/http_config.go:1666
MethodDecode
Decode implements the Decoder interface.
expfmt/decode.go:144
MethodDecode
(*dto.MetricFamily)
expfmt/decode.go:178
MethodDecode
Decode implements the Decoder interface.
expfmt/decode.go:189
MethodDecode
Decode implements the Decoder interface.
expfmt/decode.go:210
MethodDecode
Decode implements the Decoder interface.
expfmt/decode.go:230
MethodDescription
()
config/http_config.go:788
MethodDescription
()
config/http_config.go:812
MethodDescription
()
config/http_config.go:830
MethodEncode
(v *dto.MetricFamily)
expfmt/encode.go:106
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:311
← previousnext →301–400 of 800, ranked by callers