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

Function isSum

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

Source from the content-addressed store, hash-verified

968}
969
970func isSum(name string) bool {
971 return len(name) > 4 && name[len(name)-4:] == "_sum"
972}
973
974func isBucket(name string) bool {
975 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