Task #2237 Add code to group data by cpu and memory usages

- It doesn't make sense to use data after the discomfort. So, the
Clustering is not checking the other values.