Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog

## October 2018
* Corrected heuristic for generating metric names

## August 2018
* Added V9.1 constant definitions
* Updated build comments
Expand Down
10 changes: 8 additions & 2 deletions mqmetric/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,8 +681,14 @@ func formatDescription(elem *MonElement) string {
} else if strings.Contains(s, "log_") {
/* Weird case where the log datatype is not MB or GB but should be bytes */
s = s + "_bytes"
} else {
s = s + "_count"
}

// There are some metrics that have both "count" and "byte count" in
// the descriptions. They were getting mapped to the same string, so
// we have to ensure uniqueness. We do not put "_count" on the
// metric name.
if (strings.Contains(elem.Description,"byte count")) {
s = s + "_bytes"
}
}

Expand Down