Skip to content

Commit 6f52f33

Browse files
authored
Missing variable in other postgres screenboard widgets (#17500)
1 parent 1ccd5f3 commit 6f52f33

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

postgres/assets/dashboards/postgresql_screenboard_dashboard.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"type": "query_value",
7878
"requests": [
7979
{
80-
"q": "max:postgresql.percent_usage_connections{$scope}*100",
80+
"q": "max:postgresql.percent_usage_connections{$scope,$host}*100",
8181
"aggregator": "last",
8282
"conditional_formats": [
8383
{
@@ -230,25 +230,25 @@
230230
{
231231
"aggregator": "avg",
232232
"cell_display_mode": ["bar"],
233-
"q": "avg:postgresql.total_size{$scope,$db,$table} by {table}",
233+
"q": "avg:postgresql.total_size{$scope,$db,$table,$host} by {table}",
234234
"alias": "Disk Usage",
235235
"limit": 50,
236236
"order": "desc"
237237
},
238238
{
239-
"q": "avg:postgresql.index_scans{$scope,$db,$table} by {table}",
239+
"q": "avg:postgresql.index_scans{$scope,$db,$table,$host} by {table}",
240240
"alias": "Index Scans",
241241
"cell_display_mode": ["bar"],
242242
"aggregator": "avg"
243243
},
244244
{
245-
"q": "avg:postgresql.live_rows{$scope,$db,$table} by {table}",
245+
"q": "avg:postgresql.live_rows{$scope,$db,$table,$host} by {table}",
246246
"alias": "Live Rows",
247247
"cell_display_mode": ["bar"],
248248
"aggregator": "avg"
249249
},
250250
{
251-
"q": "avg:postgresql.dead_rows{$scope,$db,$table} by {table}",
251+
"q": "avg:postgresql.dead_rows{$scope,$db,$table,$host} by {table}",
252252
"alias": "Dead Rows",
253253
"cell_display_mode": ["bar"],
254254
"aggregator": "avg"
@@ -724,19 +724,19 @@
724724
{
725725
"aggregator": "sum",
726726
"cell_display_mode": ["bar"],
727-
"q": "avg:postgresql.rows_inserted{$db,$scope} by {db}",
727+
"q": "avg:postgresql.rows_inserted{$db,$scope,$host} by {db}",
728728
"alias": "Inserted",
729729
"limit": 50,
730730
"order": "desc"
731731
},
732732
{
733-
"q": "avg:postgresql.rows_updated{$db,$scope} by {db}",
733+
"q": "avg:postgresql.rows_updated{$db,$scope,$host} by {db}",
734734
"alias": "Updated",
735735
"cell_display_mode": ["bar"],
736736
"aggregator": "sum"
737737
},
738738
{
739-
"q": "avg:postgresql.rows_deleted{$db,$scope} by {db}",
739+
"q": "avg:postgresql.rows_deleted{$db,$scope,$host} by {db}",
740740
"alias": "Deleted",
741741
"cell_display_mode": ["bar"],
742742
"aggregator": "sum"
@@ -1075,13 +1075,13 @@
10751075
{
10761076
"aggregator": "avg",
10771077
"cell_display_mode": ["bar"],
1078-
"q": "avg:postgresql.index_scans{$scope,$db,$table} by {db}",
1078+
"q": "avg:postgresql.index_scans{$scope,$db,$table,$host} by {db}",
10791079
"alias": "Index Scans",
10801080
"limit": 50,
10811081
"order": "desc"
10821082
},
10831083
{
1084-
"q": "avg:postgresql.seq_scans{$scope,$db,$table} by {db}",
1084+
"q": "avg:postgresql.seq_scans{$scope,$db,$table,$host} by {db}",
10851085
"alias": "Sequential Scans",
10861086
"cell_display_mode": ["bar"],
10871087
"aggregator": "avg"

0 commit comments

Comments
 (0)