Skip to content

Commit

Permalink
Use jobSummary to get version
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 committed Aug 28, 2024
1 parent a4902a7 commit 4481db9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/kube-burner-report-ocp-wrapper/queries.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ local elasticsearch = g.query.elasticsearch;
+ elasticsearch.metrics.MetricAggregationWithSettings.RawData.settings.withSize("500")
+ elasticsearch.metrics.MetricAggregationWithSettings.RawData.withType('raw_data'),
])
+ elasticsearch.withQuery("uuid.keyword: $uuid AND metricName.keyword: \"etcdVersion\"")
+ elasticsearch.withQuery("uuid.keyword: $uuid AND metricName.keyword: jobSummary")
+ elasticsearch.withTimeField('timestamp')
},
jobSummary: {
Expand Down
2 changes: 1 addition & 1 deletion templates/CPT/kube-burner-report-ocp-wrapper.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ g.dashboard.new('Kube-burner Report - OCP wrapper')
+ g.dashboard.withPanels([
panels.stat.withLastNotNullCalcs('Node count', 'none', queries.nodeCount.query(), { x: 0, y: 0, w: 4, h: 3 }),
panels.stat.withLastNotNullCalcs('', '', queries.aggregatesCount.queries(), { x: 4, y: 0, w: 12, h: 3 }),
panels.stat.withFieldSummary('OpenShift version', '', '/^metadata\\.ocpVersion$/', queries.openshiftVersion.query(), { x: 16, y: 0, w: 6, h: 3 }),
panels.stat.withFieldSummary('OpenShift version', '', 'ocpVersion', queries.openshiftVersion.query(), { x: 16, y: 0, w: 6, h: 3 }),
panels.stat.withFieldSummary('Etcd version', '', '/^labels\\.cluster_version$/', queries.openshiftVersion.query(), { x: 22, y: 0, w: 2, h: 3 }),
panels.table.withPlatformOverview('', '', queries.jobSummary.query(), { x: 0, y: 3, w: 24, h: 3 }),
panels.table.withJobSummary('', '', queries.clusterMetadata.query(), { x: 0, y: 6, w: 24, h: 3 }),
Expand Down

0 comments on commit 4481db9

Please sign in to comment.