added groupby arguments into metrics plugin