Skip to content

Commit

Permalink
Added support for exemplarTraceIdDestinations (#681) (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanderss committed Feb 15, 2022
1 parent 0af592b commit 1b94fe6
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 2 deletions.
12 changes: 10 additions & 2 deletions api/integreatly/v1alpha1/grafanadatasource_types.go
Expand Up @@ -157,8 +157,9 @@ type GrafanaDataSourceJsonData struct {
MaxLines int `json:"maxLines,omitempty"`
DerivedFields []GrafanaDataSourceJsonDerivedFields `json:"derivedFields,omitempty"`
// Fields for Prometheus data sources
CustomQueryParameters string `json:"customQueryParameters,omitempty"`
HTTPMethod string `json:"httpMethod,omitempty"`
CustomQueryParameters string `json:"customQueryParameters,omitempty"`
HTTPMethod string `json:"httpMethod,omitempty"`
ExemplarTraceIdDestinations []GrafanaDataSourceJsonExemplarTraceIdDestinations `json:"exemplarTraceIdDestinations,omitempty"`
// Fields for tracing data sources
TracesToLogs GrafanaDataSourceJsonTracesToLogs `json:"tracesToLogs,omitempty"`
ServiceMap GrafanaDataSourceJsonServiceMap `json:"serviceMap,omitempty"`
Expand Down Expand Up @@ -191,6 +192,13 @@ type GrafanaDataSourceJsonDerivedFields struct {
Url string `json:"url,omitempty"`
}

type GrafanaDataSourceJsonExemplarTraceIdDestinations struct {
DatasourceUid string `json:"datasourceUid,omitempty"`
Name string `json:"name,omitempty"`
Url string `json:"url,omitempty"`
UrlDisplayLabel string `json:"urlDisplayLabel,omitempty"`
}

type GrafanaDataSourceJsonTracesToLogs struct {
DatasourceUid string `json:"datasourceUid,omitempty"`
SpanEndTimeShift string `json:"spanEndTimeShift,omitempty"`
Expand Down
20 changes: 20 additions & 0 deletions api/integreatly/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions config/crd/bases/integreatly.org_grafanadatasources.yaml
Expand Up @@ -117,6 +117,19 @@ spec:
type: string
esVersion:
type: string
exemplarTraceIdDestinations:
items:
properties:
datasourceUid:
type: string
name:
type: string
url:
type: string
urlDisplayLabel:
type: string
type: object
type: array
githubUrl:
description: Fields for Github data sources
type: string
Expand Down
13 changes: 13 additions & 0 deletions deploy/manifests/latest/crds.yaml
Expand Up @@ -225,6 +225,19 @@ spec:
type: string
esVersion:
type: string
exemplarTraceIdDestinations:
items:
properties:
datasourceUid:
type: string
name:
type: string
url:
type: string
urlDisplayLabel:
type: string
type: object
type: array
githubUrl:
description: Fields for Github data sources
type: string
Expand Down
55 changes: 55 additions & 0 deletions documentation/api.md
Expand Up @@ -695,6 +695,13 @@ GrafanaDataSourceJsonData contains the most common json options See https://graf
<br/>
</td>
<td>false</td>
</tr><tr>
<td><b><a href="#grafanadatasourcespecdatasourcesindexjsondataexemplartraceiddestinationsindex">exemplarTraceIdDestinations</a></b></td>
<td>[]object</td>
<td>
<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>githubUrl</b></td>
<td>string</td>
Expand Down Expand Up @@ -1146,6 +1153,54 @@ GrafanaDataSourceJsonData contains the most common json options See https://graf
</table>


### GrafanaDataSource.spec.datasources[index].jsonData.exemplarTraceIdDestinations[index]
<sup><sup>[↩ Parent](#grafanadatasourcespecdatasourcesindexjsondata)</sup></sup>





<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Required</th>
</tr>
</thead>
<tbody><tr>
<td><b>datasourceUid</b></td>
<td>string</td>
<td>
<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>name</b></td>
<td>string</td>
<td>
<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>url</b></td>
<td>string</td>
<td>
<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>urlDisplayLabel</b></td>
<td>string</td>
<td>
<br/>
</td>
<td>false</td>
</tr></tbody>
</table>


### GrafanaDataSource.spec.datasources[index].jsonData.nodeGraph
<sup><sup>[↩ Parent](#grafanadatasourcespecdatasourcesindexjsondata)</sup></sup>

Expand Down

0 comments on commit 1b94fe6

Please sign in to comment.