MCPcopy Create free account

hub / github.com/prometheus/common / functions

Functions697 in github.com/prometheus/common

↓ 1 callersMethodOpen
Open implements the fs.FS interface.
assets/embed_gzip.go:37
↓ 1 callersFunctionParseDurationAllowNegative
ParseDurationAllowNegative is like ParseDuration but also accepts negative durations.
model/time.go:284
↓ 1 callersFunctionParseFingerprint
ParseFingerprint parses the input string into a fingerprint.
model/fingerprinting.go:32
↓ 1 callersFunctionPrometheusUserAgent
()
version/info.go:111
↓ 1 callersMethodQuery
Query registers a new QUERY route.
route/route.go:123
↓ 1 callersMethodRedacted
Redacted returns the URL but replaces any password with "xxxxx".
config/http_config.go:205
↓ 1 callersFunctionResponseFormat
ResponseFormat extracts the correct format from a HTTP response header. If no matching format can be found FormatUnknown is returned.
expfmt/decode.go:43
↓ 1 callersFunctionSignatureForLabels
SignatureForLabels works like LabelsToSignature but takes a Metric as parameter (rather than a label map) and only includes the labels with the specif
model/signature.go:98
↓ 1 callersFunctionSignatureWithoutLabels
SignatureWithoutLabels works like LabelsToSignature but takes a Metric as parameter (rather than a label map) and excludes the labels with any of the
model/signature.go:118
↓ 1 callersMethodSize
Size implements the fs.FileInfo interface.
assets/embed_gzip.go:111
↓ 1 callersMethodStat
Stat implements the fs.File interface.
assets/embed_gzip.go:73
↓ 1 callersFunctionStaticFileServer
(root http.FileSystem)
server/static_file_server.go:41
↓ 1 callersMethodStatus
Status returns the status of the alert.
model/alert.go:78
↓ 1 callersMethodStatus
Status returns StatusFiring iff at least one of the alerts is firing.
model/alert.go:148
↓ 1 callersMethodStatusAt
StatusAt returns StatusFiring iff at least one of the alerts is firing at the time ts.
model/alert.go:157
↓ 1 callersMethodString
()
promslog/slog.go:126
↓ 1 callersMethodString
()
model/value_float.go:63
↓ 1 callersMethodString
String returns a string representation of the Time.
model/time.go:115
↓ 1 callersMethodString
()
model/value_type.go:69
↓ 1 callersMethodString
()
model/value_histogram.go:26
↓ 1 callersMethodSub
Sub returns the Duration t - o.
model/time.go:90
↓ 1 callersFunctionToEscapingScheme
(s string)
model/metric.go:567
↓ 1 callersMethodTokenSource
TokenSource returns a JWT TokenSource using the configuration in c and the HTTP client from the provided context.
config/oauth_assertion.go:88
↓ 1 callersMethodTokenSource
(ctx context.Context)
config/http_config.go:979
↓ 1 callersMethodUnmarshalText
UnmarshalText implements the encoding.TextUnmarshaler interface.
model/time.go:358
↓ 1 callersMethodValidate
Validate returns true iff all fields of the matcher have valid values.
model/silence.go:49
↓ 1 callersFunctionWithCreatedLines
WithCreatedLines is an EncoderOption that configures the OpenMetrics encoder to include _created lines (See https://github.com/prometheus/OpenMetrics/
expfmt/openmetrics_create.go:47
↓ 1 callersFunctionWithHost
WithHost allows setting the host header.
config/http_config.go:567
↓ 1 callersFunctionWithIdleConnTimeout
WithIdleConnTimeout allows setting the idle connection timeout.
config/http_config.go:553
↓ 1 callersFunctionWithParam
WithParam returns a new context with param p set to v.
route/route.go:40
↓ 1 callersMethodWithPrefix
WithPrefix returns a router that prefixes all registered routes with prefix.
route/route.go:71
↓ 1 callersFunctionWithUserAgent
WithUserAgent allows setting the user agent.
config/http_config.go:560
↓ 1 callersMethodapplyToTLSConfigOptions
(options *tlsConfigOptions)
config/http_config.go:1254
↓ 1 callersFunctionbenchmarkMetricFamilies
()
expfmt/benchmark_test.go:26
↓ 1 callersFunctioncomputeRevision
()
version/info.go:123
↓ 1 callersFunctionextractCounter
(o *DecodeOptions, f *dto.MetricFamily)
expfmt/decode.go:236
↓ 1 callersFunctionextractGauge
(o *DecodeOptions, f *dto.MetricFamily)
expfmt/decode.go:267
↓ 1 callersFunctionextractHistogram
(o *DecodeOptions, f *dto.MetricFamily)
expfmt/decode.go:386
↓ 1 callersFunctionextractSummary
(o *DecodeOptions, f *dto.MetricFamily)
expfmt/decode.go:329
↓ 1 callersFunctionextractUntyped
(o *DecodeOptions, f *dto.MetricFamily)
expfmt/decode.go:298
↓ 1 callersMethodgetClientCertificate
getClientCertificate reads the pair of client cert and key and returns a tls.Certificate.
config/http_config.go:1427
↓ 1 callersFunctiongetLogEntryLevelCounts
(s string, re *regexp.Regexp)
promslog/slog_test.go:83
↓ 1 callersFunctionhistogramMetricName
(name string)
expfmt/text_parse.go:989
↓ 1 callersFunctionisBucket
(name string)
expfmt/text_parse.go:974
↓ 1 callersFunctionisValidMetricNameContinuation
(b byte, quoted bool)
expfmt/text_parse.go:958
↓ 1 callersFunctionisValidMetricNameStart
(b byte)
expfmt/text_parse.go:954
↓ 1 callersFunctionisdigit
(c byte)
model/time.go:207
↓ 1 callersFunctionloadHTTPConfigJSON
loadHTTPConfigJSON parses the JSON input s into a HTTPClientConfig.
config/http_config_test.go:2509
↓ 1 callersFunctionlower
lower function taken from strconv.atoi.
model/metric.go:466
↓ 1 callersFunctionmapToValues
(m map[string]string)
config/http_config.go:1138
↓ 1 callersFunctionmatchFormat
matchFormat checks if a parsed accept clause matches a given Format.
expfmt/encode.go:131
↓ 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:599
↓ 1 callersFunctionnewGoKitStyleReplaceAttrFunc
(lvl *Level)
promslog/slog.go:149
↓ 1 callersMethodnewOauth2TokenSource
(req *http.Request, clientCredential string)
config/http_config.go:982
↓ 1 callersFunctionnormalizeHistogram
normalizeHistogram makes sure that all the buckets and the count in each histogram is either completely float or completely integer.
expfmt/text_parse.go:142
↓ 1 callersFunctionoriginalRequestHost
(req *http.Request)
config/http_config.go:1172
↓ 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 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 callersFunctionvalidateExemplar20
(e *dto.Exemplar)
expfmt/openmetrics_2_0_create.go:380
↓ 1 callersFunctionwriteCertificateAndKey
(path string, cert *x509.Certificate, key *rsa.PrivateKey)
config/generate.go:164
↓ 1 callersFunctionwriteCompositeHistogram
(w enhancedWriter, name string, metric *dto.Metric, isGauge bool)
expfmt/openmetrics_2_0_create.go:352
↓ 1 callersFunctionwriteCompositeSummary
Stubs for Summary and Histogram
expfmt/openmetrics_2_0_create.go:345
↓ 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 callersFunctionwriteExemplar20
writeExemplar20 writes the provided exemplar in OpenMetrics 2.0 format to w. In OpenMetrics 2.0, invalid exemplars or exemplars without a timestamp ar
expfmt/openmetrics_2_0_create.go:287
↓ 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 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
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:483
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
← previousnext →201–300 of 697, ranked by callers