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

Function isCount

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

Source from the content-addressed store, hash-verified

964}
965
966func isCount(name string) bool {
967 return len(name) > 6 && name[len(name)-6:] == "_count"
968}
969
970func isSum(name string) bool {
971 return len(name) > 4 && name[len(name)-4:] == "_sum"

Callers 3

setOrCreateCurrentMFMethod · 0.85
summaryMetricNameFunction · 0.85
histogramMetricNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected