We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dcf02e commit efe8e6fCopy full SHA for efe8e6f
api/prometheus/v1/api.go
@@ -824,6 +824,8 @@ type apiOptions struct {
824
825
type Option func(c *apiOptions)
826
827
+// WithTimeout can be used to provide an optional query evaluation timeout for Query and QueryRange.
828
+// https://prometheus.io/docs/prometheus/latest/querying/api/#instant-queries
829
func WithTimeout(timeout time.Duration) Option {
830
return func(o *apiOptions) {
831
o.timeout = timeout
0 commit comments