Skip to content

Commit a4902a7

Browse files
committed
Adapt metadata queries to lastest kube-burner changes
Signed-off-by: Raul Sevilla <[email protected]>
1 parent 7a2fa6e commit a4902a7

File tree

8 files changed

+1102
-1087
lines changed

8 files changed

+1102
-1087
lines changed

assets/kube-burner-report-mode/panels.libsonnet

Lines changed: 467 additions & 477 deletions
Large diffs are not rendered by default.

assets/kube-burner-report-mode/queries.libsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ local elasticsearch = g.query.elasticsearch;
44

55
{
66

7-
benchmarkOveriew: {
7+
platformOverview: {
88
query():
99
elasticsearch.withAlias("")
1010
+ elasticsearch.withBucketAggs([])
1111
+ elasticsearch.withMetrics([
1212
elasticsearch.metrics.MetricAggregationWithSettings.RawData.settings.withSize("500")
1313
+ elasticsearch.metrics.MetricAggregationWithSettings.RawData.withType('raw_data'),
1414
])
15-
+ elasticsearch.withQuery('uuid.keyword: $uuid AND metricName.keyword: clusterMetadata')
15+
+ elasticsearch.withQuery('uuid.keyword: $uuid AND metricName.keyword: jobSummary')
1616
+ elasticsearch.withTimeField('timestamp')
1717
},
1818

19-
garbageCollection: {
19+
jobSummary: {
2020
query():
2121
elasticsearch.withAlias("")
2222
+ elasticsearch.withBucketAggs([])

assets/kube-burner-report-mode/variables.libsonnet

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,40 +33,40 @@ local var = g.dashboard.variable;
3333
+ var.query.selectionOptions.withIncludeAll(true)
3434
+ var.query.generalOptions.withLabel('Cluster Type'),
3535

36-
benchmark:
37-
var.query.new('benchmark', '{"find": "terms", "field": "benchmark.keyword", "query": "platform.keyword: $platform AND sdnType.keyword: $sdn AND clusterType.keyword: $clusterType"}')
36+
job:
37+
var.query.new('job', '{"find": "terms", "field": "jobConfig.name.keyword", "query": "platform.keyword: $platform AND sdnType.keyword: $sdn AND clusterType.keyword: $clusterType"}')
3838
+ var.query.withDatasourceFromVariable(self.Datasource)
3939
+ var.query.withRefresh(1)
4040
+ var.query.selectionOptions.withMulti(false)
4141
+ var.query.selectionOptions.withIncludeAll(false)
42-
+ var.query.generalOptions.withLabel('Benchmark'),
42+
+ var.query.generalOptions.withLabel('Job'),
4343

4444
workerNodesCount:
45-
var.query.new('workerNodesCount', '{"find": "terms", "field": "workerNodesCount", "query": "platform.keyword: $platform AND sdnType.keyword: $sdn AND benchmark.keyword: $benchmark AND clusterType.keyword: $clusterType"}')
45+
var.query.new('workerNodesCount', '{"find": "terms", "field": "workerNodesCount", "query": "platform.keyword: $platform AND sdnType.keyword: $sdn AND jobConfig.name.keyword: $job AND clusterType.keyword: $clusterType"}')
4646
+ var.query.withDatasourceFromVariable(self.Datasource)
4747
+ var.query.withRefresh(1)
4848
+ var.query.selectionOptions.withMulti(false)
4949
+ var.query.selectionOptions.withIncludeAll(false)
5050
+ var.query.generalOptions.withLabel('Workers'),
5151

5252
ocpMajorVersion:
53-
var.query.new('ocpMajorVersion', '{"find": "terms", "field": "ocpMajorVersion.keyword", "query": "platform.keyword: $platform AND sdnType.keyword: $sdn AND benchmark.keyword: $benchmark AND workerNodesCount: $workerNodesCount AND clusterType.keyword: $clusterType"}')
53+
var.query.new('ocpMajorVersion', '{"find": "terms", "field": "ocpMajorVersion.keyword", "query": "platform.keyword: $platform AND sdnType.keyword: $sdn AND jobConfig.name.keyword: $job AND workerNodesCount: $workerNodesCount AND clusterType.keyword: $clusterType"}')
5454
+ var.query.withDatasourceFromVariable(self.Datasource)
5555
+ var.query.withRefresh(1)
5656
+ var.query.selectionOptions.withMulti(true)
5757
+ var.query.selectionOptions.withIncludeAll(false)
5858
+ var.query.generalOptions.withLabel('OCP Major'),
5959

6060
uuid:
61-
var.query.new('uuid', '{"find": "terms", "field": "uuid.keyword", "query": "platform.keyword: $platform AND sdnType.keyword: $sdn AND benchmark.keyword: $benchmark AND workerNodesCount: $workerNodesCount AND ocpMajorVersion.keyword: $ocpMajorVersion AND clusterType.keyword: $clusterType"}')
61+
var.query.new('uuid', '{"find": "terms", "field": "uuid.keyword", "query": "platform.keyword: $platform AND sdnType.keyword: $sdn AND jobConfig.name.keyword: $job AND workerNodesCount: $workerNodesCount AND ocpMajorVersion.keyword: $ocpMajorVersion AND clusterType.keyword: $clusterType"}')
6262
+ var.query.withDatasourceFromVariable(self.Datasource)
6363
+ var.query.withRefresh(1)
6464
+ var.query.selectionOptions.withMulti(true)
6565
+ var.query.selectionOptions.withIncludeAll(false)
6666
+ var.query.generalOptions.withLabel('UUID'),
6767

6868
compare_by:
69-
var.custom.new('compare_by', ['uuid', 'metadata.ocpVersion', 'metadata.ocpMajorVersion'])
69+
var.custom.new('compare_by', ['uuid', '.ocpVersion', 'ocpMajorVersion'])
7070
+ var.custom.generalOptions.withLabel('Compare by')
7171
+ var.custom.selectionOptions.withIncludeAll(false)
7272
+ var.custom.selectionOptions.withMulti(false),
@@ -82,4 +82,4 @@ local var = g.dashboard.variable;
8282
+ var.custom.generalOptions.withLabel('Node roles')
8383
+ var.custom.selectionOptions.withIncludeAll(false)
8484
+ var.custom.selectionOptions.withMulti(true),
85-
}
85+
}

0 commit comments

Comments
 (0)