Create a kind of duplication of the GET endpoints "gauges/stats" and "counters/stats".
The reason is the same as the one explained here: https://issues.jboss.org/browse/HWKMETRICS-410 and which ended up in duplicating GET "gauges/raw" endpoint to POST "gauges/raw/query" in a similar way.
Now I want to add features to the Grafana plugin with aggregated statistics, but I face the same limitation due to Grafana proxy transforming the metric ids in GET queries.
Note also that other clients than Grafana could possibly face the same issue.
On the rest api consistency POV, I don't think it's damageable to provide POST endpoints for queries, given thoses queries can be complex and handle many parameters. It could on the contrary be more suitable than a GET.