Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix grouping of metrics with shared prefix
Naive sorting messes up the order of submetrics when they share a common prefix. Providing a custom sort function makes sure that "longer" metric names (without the submetric filter) are sorted after all submetrics of the previous metric. Example before: prefix...............: 1 414.40196/s prefix_suffix........: 1 414.40196/s { sub:two }........: 1 414.40196/s { sub:one }........: 1 414.40196/s Example after: prefix...............: 1 414.40196/s { sub:one }........: 1 414.40196/s prefix_suffix........: 1 414.40196/s { sub:two }........: 1 414.40196/s Closes grafana#2194
- Loading branch information