-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
query-frontend: format query start/end/step, log query length (#6473)
* query-frontend: log query start/end/step in milliseconds This PR adds another layer of stats to the query-frontend. These stats contain details about the parsed query and its execution. For now these details are only * start time in milliseconds * end time in milliseconds * step in milliseconds These are logged in query stats with precedence over the raw values received over the API. This makes machine-parsing the values easier. The PR also logs the time since the param_start and param_end parameters. This will help determine whether the query would hit ingesters or store-gateways. I wasn't sure whether these should be easier to be ready by humans or by machines. I opted for having them as human-readable go duration strings. Loki can also parse these, but I am not sure about other logging solutions. Signed-off-by: Dimitar Dimitrov <[email protected]> * Update CHANGELOG.md Signed-off-by: Dimitar Dimitrov <[email protected]> --------- Signed-off-by: Dimitar Dimitrov <[email protected]>
- Loading branch information
1 parent
a0635de
commit 5fce9e9
Showing
6 changed files
with
267 additions
and
26 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.