-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[API] Split /values endpoint in two simpler endpoints #3
Comments
I am a bit unsure if the splitting really helps clients to work with the API. I could imagine that it lowers the burden to implement the values endpoint when it is not required to integrate any aggregation operations. |
As you said I also see potential in the split in lowering the burden to implement only one of them. And if the two concerns are separated in their own endpoints it's easier to evolve them independently. |
One option could be:
I currently see a small issue with this approach: The Grafana data source uses /values and the "avg" operation to resample the data. Hence the data source would be unusable with endpoints that don't support aggregates. |
Currently the /values endpont is very complex and could be split in two separate endpoints. One endpoint for querying values. And one endpoint for aggregating values.
The text was updated successfully, but these errors were encountered: