diff --git a/api/integreatly/v1alpha1/grafanadatasource_types.go b/api/integreatly/v1alpha1/grafanadatasource_types.go index 8a79b92bb..cde5d29b0 100644 --- a/api/integreatly/v1alpha1/grafanadatasource_types.go +++ b/api/integreatly/v1alpha1/grafanadatasource_types.go @@ -101,6 +101,8 @@ type GrafanaDataSourceFields struct { // GrafanaDataSourceJsonData contains the most common json options // See https://grafana.com/docs/administration/provisioning/#datasources type GrafanaDataSourceJsonData struct { + // HTTP Request timeout in seconds. Overrides dataproxy.timeout option + Timeout int `json:"timeout,omitempty"` QueryTimeout string `json:"queryTimeout,omitempty"` OauthPassThru bool `json:"oauthPassThru,omitempty"` TlsAuth bool `json:"tlsAuth,omitempty"` diff --git a/config/crd/bases/integreatly.org_grafanadatasources.yaml b/config/crd/bases/integreatly.org_grafanadatasources.yaml index 57c3567ff..1179b24bd 100644 --- a/config/crd/bases/integreatly.org_grafanadatasources.yaml +++ b/config/crd/bases/integreatly.org_grafanadatasources.yaml @@ -259,6 +259,10 @@ spec: type: string timeInterval: type: string + timeout: + description: HTTP Request timeout in seconds. Overrides + dataproxy.timeout option + type: integer timescaledb: type: boolean timezone: diff --git a/deploy/manifests/latest/crds.yaml b/deploy/manifests/latest/crds.yaml index 4f270e895..cd92fa3a1 100644 --- a/deploy/manifests/latest/crds.yaml +++ b/deploy/manifests/latest/crds.yaml @@ -421,6 +421,10 @@ spec: type: string timeInterval: type: string + timeout: + description: HTTP Request timeout in seconds. Overrides + dataproxy.timeout option + type: integer timescaledb: type: boolean timezone: diff --git a/documentation/api.md b/documentation/api.md index bcd6a85c5..bb072edf2 100644 --- a/documentation/api.md +++ b/documentation/api.md @@ -1204,6 +1204,13 @@ GrafanaDataSourceJsonData contains the most common json options See https://graf
false + + timeout + integer + + HTTP Request timeout in seconds. Overrides dataproxy.timeout option
+ + false timescaledb boolean