go-graphite / carbonapi

Implementation of graphite API (graphite-web) in golang
Other
309 stars 140 forks source link

Fix groupByNode/groupByNodes returning more results than expected #778

Closed carrieedwards closed 1 year ago

carrieedwards commented 1 year ago

This PR fixes an issue in which groupByNode/groupByNodes functions were returning more series than expected (based on issuing the same query in Graphite-web). The Graphite-web implementation returns only the first result of the series that are returned from the callback function. In order to match the expected behavior, these functions have been updated to do the same.