We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f832621 commit f9e53bfCopy full SHA for f9e53bf
mqmetric/discover.go
@@ -862,10 +862,11 @@ func formatDescription(elem *MonElement) string {
862
863
// There are some metrics that have both "count" and "byte count" in
864
// the descriptions. They were getting mapped to the same string, so
865
- // we have to ensure uniqueness. We do not put "_count" on the
866
- // metric name.
+ // we have to ensure uniqueness.
867
if strings.Contains(elem.Description, "byte count") {
868
s = s + "_bytes"
+ } else if strings.HasSuffix(elem.Description," count") && !strings.Contains(s,"_count") {
869
+ s = s + "_count"
870
}
871
872
0 commit comments