Skip to content

Commit

Permalink
change order of panels
Browse files Browse the repository at this point in the history
  • Loading branch information
anaivanov committed Sep 26, 2024
1 parent 41019f8 commit 8351109
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions csp-mixin/panels.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -1126,8 +1126,8 @@ local commonlib = import 'common-lib/common/main.libsonnet';
],
},
]),
gce_top5_disk_write_bytes:
this.signals.gcpceOverview.top5DiskWrite.asTable(format='table')
gce_top5_disk_read_bytes:
this.signals.gcpceOverview.top5DiskRead.asTable(format='table')
+ g.panel.table.standardOptions.withUnit('bytes')
+ g.panel.table.standardOptions.withOverrides([
{
Expand Down Expand Up @@ -1191,8 +1191,8 @@ local commonlib = import 'common-lib/common/main.libsonnet';
],
},
]),
gce_top5_disk_read_bytes:
this.signals.gcpceOverview.top5DiskRead.asTable(format='table')
gce_top5_disk_write_bytes:
this.signals.gcpceOverview.top5DiskWrite.asTable(format='table')
+ g.panel.table.standardOptions.withUnit('bytes')
+ g.panel.table.standardOptions.withOverrides([
{
Expand Down
4 changes: 2 additions & 2 deletions csp-mixin/rows.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ local g = import './g.libsonnet';
+ g.panel.timeSeries.gridPos.withW(12)
+ g.panel.timeSeries.gridPos.withH(8),

this.grafana.panels.gce_top5_disk_write_bytes
this.grafana.panels.gce_top5_disk_read_bytes
+ g.panel.timeSeries.gridPos.withW(12)
+ g.panel.timeSeries.gridPos.withH(8),

this.grafana.panels.gce_top5_disk_read_bytes
this.grafana.panels.gce_top5_disk_write_bytes
+ g.panel.timeSeries.gridPos.withW(12)
+ g.panel.timeSeries.gridPos.withH(8),

Expand Down
20 changes: 10 additions & 10 deletions csp-mixin/signals/gcpceOverview.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -67,33 +67,33 @@ function(this)
},
},

top5DiskWrite: {
name: 'Top 5 Instances by Disk write bytes',
description: 'List of top 5 instances by disk write bytes',
top5DiskRead: {
name: 'Top 5 Instances by Disk read bytes',
description: 'List of top 5 instances by disk read bytes',
type: 'gauge',
aggFunction: 'sum',
unit: 'bytes',
sources: {
stackdriver: {
expr: 'increase(stackdriver_gce_instance_compute_googleapis_com_instance_disk_write_bytes_count{%(queriesSelector)s}[$__range])',
legendCustomTemplate: '',
expr: 'increase(stackdriver_gce_instance_compute_googleapis_com_instance_disk_read_bytes_count{%(queriesSelector)s}[$__range])',
aggKeepLabels: ['instance_name'],
legendCustomTemplate: '',
exprWrappers: [['topk(5,', ')']],
},
},
},

top5DiskRead: {
name: 'Top 5 Instances by Disk read bytes',
description: 'List of top 5 instances by disk read bytes',
top5DiskWrite: {
name: 'Top 5 Instances by Disk write bytes',
description: 'List of top 5 instances by disk write bytes',
type: 'gauge',
aggFunction: 'sum',
unit: 'bytes',
sources: {
stackdriver: {
expr: 'increase(stackdriver_gce_instance_compute_googleapis_com_instance_disk_read_bytes_count{%(queriesSelector)s}[$__range])',
aggKeepLabels: ['instance_name'],
expr: 'increase(stackdriver_gce_instance_compute_googleapis_com_instance_disk_write_bytes_count{%(queriesSelector)s}[$__range])',
legendCustomTemplate: '',
aggKeepLabels: ['instance_name'],
exprWrappers: [['topk(5,', ')']],
},
},
Expand Down

0 comments on commit 8351109

Please sign in to comment.