-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add query percentile support to stats (#1112)
* Record query latency percentiles with hdrhistogram * Expose queries percentiles through stats response * Simplify QueriesStats transformation to QueriesStatsResponse * Reset query stats at the beginning of every hour (#1118) * Add expires_at to control when QueriesStats should be reset * Add query count and elapsed sum to query stats response Also group all latency aggregations together under the elapsed key * Remove option sprawl on QueriesStats fields By making the whole struct optional where it is used * Add created_at to stats queries responde object * Set queries stats to none when stats is created This will make the API response the same when no queries have been recorded on the queries stats struct. This can happen right after: - the stats struct initialization - the stats queries object expiration Example of stats API response when no queries have been recorded: { ... "queries": null } * Use if else instead of early return from stats to response
- Loading branch information
1 parent
06369fc
commit d5f7147
Showing
4 changed files
with
124 additions
and
37 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters