MCPcopy Create free account
hub / github.com/prometheus/common / isSum

Function isSum

expfmt/text_parse.go:744–746  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

742}
743
744func isSum(name string) bool {
745 return len(name) > 4 && name[len(name)-4:] == "_sum"
746}
747
748func isBucket(name string) bool {
749 return len(name) > 7 && name[len(name)-7:] == "_bucket"

Callers 3

setOrCreateCurrentMFMethod · 0.85
summaryMetricNameFunction · 0.85
histogramMetricNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected