Skip to content

Commit

Permalink
Merge pull request #826 from alex-berger/feature/ds-timeout
Browse files Browse the repository at this point in the history
add support to set datasource timeout
  • Loading branch information
pb82 committed Sep 27, 2022
2 parents 6b272df + 2299fb3 commit 54a5592
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/integreatly/v1alpha1/grafanadatasource_types.go
Expand Up @@ -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"`
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/integreatly.org_grafanadatasources.yaml
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions deploy/manifests/latest/crds.yaml
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions documentation/api.md
Expand Up @@ -1204,6 +1204,13 @@ GrafanaDataSourceJsonData contains the most common json options See https://graf
<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>timeout</b></td>
<td>integer</td>
<td>
HTTP Request timeout in seconds. Overrides dataproxy.timeout option<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>timescaledb</b></td>
<td>boolean</td>
Expand Down

0 comments on commit 54a5592

Please sign in to comment.