ganglia / ganglia-web

Ganglia Web Frontend
BSD 3-Clause "New" or "Revised" License
316 stars 170 forks source link

User defined sorting for metric groups #210

Closed pcpiela closed 11 years ago

pcpiela commented 11 years ago

Added the capability for users to define custom ordering of elements in metric groups. If the function sort_metric_group_metrics exists it will be called in the construction of metric groups. The function takes two arguments: group-name, and an array of metric names. The return value of the function is the array of metric names in the user-specified order.