-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update query API to support timeouts (#1014)
* Add timeout parameter for queries Signed-off-by: Joseph Woodward <joseph.woodward@xeuse.com> * Update api/prometheus/v1/api.go Co-authored-by: Kemal Akkoyun <kakkoyun@users.noreply.github.com> Signed-off-by: Joseph Woodward <joseph.woodward@xeuse.com> * Update api/prometheus/v1/api.go Co-authored-by: Kemal Akkoyun <kakkoyun@users.noreply.github.com> Signed-off-by: Joseph Woodward <joseph.woodward@xeuse.com> * Pass timeout as stringified time.Duration instead of millisecond value Signed-off-by: Joseph Woodward <joseph.woodward@xeuse.com> * Update QueryRange API to support timeouts Signed-off-by: Joseph Woodward <joseph.woodward@xeuse.com> * Add timeout to test request params Signed-off-by: Joseph Woodward <joseph.woodward@xeuse.com> Co-authored-by: Kemal Akkoyun <kakkoyun@users.noreply.github.com>
- Loading branch information
1 parent
11ee9ad
commit 48a686a
Showing
3 changed files
with
53 additions
and
18 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