MCPcopy Create free account

hub / github.com/prometheus/common / functions

Functions800 in github.com/prometheus/common

↓ 2 callersFunctiontestMetric
(t testing.TB)
model/metric_test.go:39
↓ 2 callersFunctiontestTextParse
(t testing.TB)
expfmt/text_parse_test.go:45
↓ 2 callersFunctiontestTextParseError
(t testing.TB)
expfmt/text_parse_test.go:1003
↓ 2 callersFunctionupdateRootCA
updateRootCA parses the given byte slice as a series of PEM encoded certificates and updates tls.Config.RootCAs.
config/http_config.go:1468
↓ 2 callersMethodusingClientCert
()
config/http_config.go:1402
↓ 2 callersMethodusingClientKey
()
config/http_config.go:1406
↓ 2 callersFunctionwriteCompositeHistogram
(w enhancedWriter, name string, metric *dto.Metric, isGauge bool)
expfmt/openmetrics_2_0_create.go:516
↓ 2 callersFunctionwriteCompositeSummary
(w enhancedWriter, name string, metric *dto.Metric)
expfmt/openmetrics_2_0_create.go:369
↓ 2 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:313
↓ 2 callersFunctionwriteOpenMetrics20Sample
writeOpenMetrics20Sample writes a single sample for simple types (Counter, Gauge, Untyped).
expfmt/openmetrics_2_0_create.go:239
↓ 1 callersMethodClone
Clone returns a copy of the label set.
model/labelset.go:109
↓ 1 callersMethodCloseIdleConnections
()
config/http_config.go:1619
↓ 1 callersMethodDel
Del registers a new DELETE route.
route/route.go:103
↓ 1 callersFunctionEncodeKey
(w io.Writer, priv *rsa.PrivateKey)
config/generate.go:45
↓ 1 callersMethodEqual
Equal returns true if both sets contain the same elements (and not more).
model/fingerprinting.go:67
↓ 1 callersMethodEqual
(o *SampleHistogramPair)
model/value_histogram.go:177
↓ 1 callersFunctionExtractSamples
ExtractSamples builds a slice of samples from the provided metric families. If an error occurs during sample extraction, it continues to extract from
expfmt/decode.go:276
↓ 1 callersMethodFastFingerprint
FastFingerprint returns a Metric's Fingerprint calculated by a faster hashing algorithm, which is, however, more susceptible to hash collisions.
model/metric.go:298
↓ 1 callersFunctionFingerprintFromString
FingerprintFromString transforms a string representation into a Fingerprint.
model/fingerprinting.go:26
↓ 1 callersFunctionFloatToTime
(v float64)
helpers/templates/time.go:49
↓ 1 callersFunctionGenerateCertificate
(caCert *x509.Certificate, caKey *rsa.PrivateKey, server bool, name string, ipAddresses ...net.IP)
config/generate.go:117
↓ 1 callersFunctionGenerateCertificateAuthority
(commonName string, parentCert *x509.Certificate, parentKey *rsa.PrivateKey)
config/generate.go:75
↓ 1 callersMethodHasFiring
HasFiring returns true iff one of the alerts is not resolved.
model/alert.go:127
↓ 1 callersMethodHasFiringAt
HasFiringAt returns true iff one of the alerts is not resolved at the time ts.
model/alert.go:138
↓ 1 callersMethodIntersection
Intersection returns the elements contained in both sets.
model/fingerprinting.go:82
↓ 1 callersFunctionIsValidMetricName
IsValidMetricName returns true iff name matches the pattern of MetricNameRE for legacy names, and iff it's valid UTF-8 if the UTF8Validation scheme is
model/metric.go:308
↓ 1 callersMethodLevel
Level returns the value of the logging level as an slog.Level.
promslog/slog.go:80
↓ 1 callersFunctionLoadHTTPConfig
LoadHTTPConfig parses the YAML input s into a HTTPClientConfig.
config/http_config.go:307
↓ 1 callersMethodMarshalText
MarshalText implements the encoding.TextMarshaler interface.
model/time.go:353
↓ 1 callersMethodMerge
Merge is a helper function to non-destructively merge two label sets.
model/labelset.go:116
↓ 1 callersMethodMilliseconds
Milliseconds returns the duration as an integer millisecond count. Prometheus stores timestamps in milliseconds; time.Duration already covers the othe
model/time.go:193
↓ 1 callersFunctionNew
(fs embed.FS)
assets/embed_gzip.go:32
↓ 1 callersFunctionNewBasicAuthRoundTripper
NewBasicAuthRoundTripper will apply a BASIC auth authorization header to a request unless it has already been set.
config/http_config.go:906
↓ 1 callersFunctionNewHostRoundTripper
NewHostRoundTripper sets the [http.Request.Host] of every request.
config/http_config.go:1643
↓ 1 callersFunctionNewOpenMetricsFormat
NewOpenMetricsFormat generates a new OpenMetrics format matching the specified version number. Note: OpenMetrics versions 2.0.0-rc and 2.0.0 are expe
expfmt/expfmt.go:119
↓ 1 callersFunctionNewRoundTripperFromConfigWithContext
NewRoundTripperFromConfigWithContext returns a new HTTP RoundTripper configured for the given config.HTTPClientConfig and config.HTTPClientOption. The
config/http_config.go:628
↓ 1 callersFunctionNewTLSConfigWithContext
NewTLSConfigWithContext creates a new tls.Config from the given TLSConfig.
config/http_config.go:1267
↓ 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:203
↓ 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:978
↓ 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 callersFunctionWithHost
WithHost allows setting the host header.
config/http_config.go:565
↓ 1 callersFunctionWithIdleConnTimeout
WithIdleConnTimeout allows setting the idle connection timeout.
config/http_config.go:551
↓ 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:558
↓ 1 callersMethodapplyToTLSConfigOptions
(options *tlsConfigOptions)
config/http_config.go:1258
↓ 1 callersFunctionbenchmarkMetricFamilies
()
expfmt/benchmark_test.go:26
↓ 1 callersFunctioncomputeRevision
()
version/info.go:123
↓ 1 callersFunctionemitOpenMetrics20Family
(st *openMetricsFamilyState, v *dto.MetricFamily)
expfmt/openmetrics_2_0_parse.go:248
↓ 1 callersFunctionemitOpenMetricsFamily
(st *openMetricsFamilyState, v *dto.MetricFamily, lineNum int)
expfmt/openmetrics_parse.go:215
↓ 1 callersFunctionescapingFor
escapingFor returns the escaping term for the Accept clause that matched f.
expfmt/encode.go:161
↓ 1 callersFunctionextractCounter
(o *DecodeOptions, f *dto.MetricFamily)
expfmt/decode.go:308
↓ 1 callersFunctionextractDescriptorMetricName
(input []byte, node *goabnf.ParseTree)
expfmt/openmetrics_2_0_parse.go:375
↓ 1 callersFunctionextractGauge
(o *DecodeOptions, f *dto.MetricFamily)
expfmt/decode.go:339
↓ 1 callersFunctionextractHistogram
(o *DecodeOptions, f *dto.MetricFamily)
expfmt/decode.go:458
↓ 1 callersFunctionextractLabelsFromList
(input []byte, node *goabnf.ParseTree)
expfmt/openmetrics_parse.go:975
↓ 1 callersFunctionextractNumberList
(input []byte, node *goabnf.ParseTree)
expfmt/openmetrics_2_0_parse.go:1305
↓ 1 callersFunctionextractSummary
(o *DecodeOptions, f *dto.MetricFamily)
expfmt/decode.go:401
↓ 1 callersFunctionextractUntyped
(o *DecodeOptions, f *dto.MetricFamily)
expfmt/decode.go:370
↓ 1 callersFunctiongenerateData
(timeseries, datapoints int)
model/api_bench_test.go:22
↓ 1 callersMethodgetClientCertificate
getClientCertificate reads the pair of client cert and key and returns a tls.Certificate.
config/http_config.go:1431
↓ 1 callersFunctiongetLogEntryLevelCounts
(s string, re *regexp.Regexp)
promslog/slog_test.go:83
↓ 1 callersFunctiongetOpenMetrics10Grammar
()
expfmt/openmetrics_parse.go:151
↓ 1 callersFunctiongetOpenMetrics20Grammar
()
expfmt/openmetrics_2_0_parse.go:194
↓ 1 callersMethodgetOrCreateDescriptorFamily
(name string)
expfmt/openmetrics_2_0_parse.go:384
↓ 1 callersMethodgetOrCreateDescriptorFamily
(name string)
expfmt/openmetrics_parse.go:340
↓ 1 callersMethodhandleDescriptor
(input []byte, node *goabnf.ParseTree)
expfmt/openmetrics_2_0_parse.go:415
↓ 1 callersMethodhandleDescriptor
(input []byte, node *goabnf.ParseTree)
expfmt/openmetrics_parse.go:368
↓ 1 callersMethodhandleSample
(input []byte, node *goabnf.ParseTree)
expfmt/openmetrics_2_0_parse.go:523
↓ 1 callersMethodhandleSample
(input []byte, node *goabnf.ParseTree)
expfmt/openmetrics_parse.go:577
↓ 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:1137
← previousnext →201–300 of 800, ranked by callers