Skip to content

Commit

Permalink
Updates in Pgbench dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
smanda99 committed Feb 16, 2024
1 parent 439d3cc commit 09f2070
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions assets/pgbench-dashboard/queries.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local elasticsearch = g.query.elasticsearch;
+ elasticsearch.bucketAggs.DateHistogram.settings.withInterval('auto')
+ elasticsearch.bucketAggs.DateHistogram.settings.withMinDocCount(0)
+ elasticsearch.bucketAggs.DateHistogram.settings.withTimeZone("utc")
+ elasticsearch.bucketAggs.DateHistogram.settings.withTrimEdges(null),
+ elasticsearch.bucketAggs.DateHistogram.settings.withTrimEdges(0),
])
+ elasticsearch.withMetrics([
elasticsearch.metrics.MetricAggregationWithSettings.Sum.withField("tps")
Expand Down Expand Up @@ -44,7 +44,7 @@ local elasticsearch = g.query.elasticsearch;
+ elasticsearch.bucketAggs.DateHistogram.settings.withInterval('auto')
+ elasticsearch.bucketAggs.DateHistogram.settings.withMinDocCount(0)
+ elasticsearch.bucketAggs.DateHistogram.settings.withTimeZone("utc")
+ elasticsearch.bucketAggs.DateHistogram.settings.withTrimEdges(null)
+ elasticsearch.bucketAggs.DateHistogram.settings.withTrimEdges(0)
])
+ elasticsearch.withMetrics([
elasticsearch.metrics.MetricAggregationWithSettings.Average.withField("tps_incl_con_est")
Expand All @@ -66,7 +66,7 @@ local elasticsearch = g.query.elasticsearch;
+ elasticsearch.bucketAggs.DateHistogram.settings.withInterval('auto')
+ elasticsearch.bucketAggs.DateHistogram.settings.withMinDocCount(0)
+ elasticsearch.bucketAggs.DateHistogram.settings.withTimeZone("utc")
+ elasticsearch.bucketAggs.DateHistogram.settings.withTrimEdges(null)
+ elasticsearch.bucketAggs.DateHistogram.settings.withTrimEdges(0)
])
+ elasticsearch.withMetrics([
elasticsearch.metrics.MetricAggregationWithSettings.Average.withField("latency_ms")
Expand Down
1 change: 0 additions & 1 deletion templates/General/pgbench-dashboard-v2.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ g.dashboard.new('Pgbench')
panels.timeSeries.avg_tps('Overall Average TPS Per Run', 'ops', queries.avg_tps.query(), { x: 12, y: 0, w: 12, h: 9 }),
panels.heatmap.base('Latency Report', 'ms', queries.latency_report.query(), { x: 0, y: 9, w: 12, h: 9 }),
panels.table.base('Result Summary', queries.results.query(), { x: 12, y: 9, w: 12, h: 9 }),

])

0 comments on commit 09f2070

Please sign in to comment.