Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anaivanov committed Sep 23, 2024
1 parent 9488ba0 commit 1863b74
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 81 deletions.
156 changes: 78 additions & 78 deletions csp-mixin/panels.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -904,14 +904,14 @@ local commonlib = import 'common-lib/common/main.libsonnet';

gce_instance_count:
this.signals.gcpceOverview.instanceCount.asStat()
+ commonlib.panels.generic.stat.base.stylize(),
+ commonlib.panels.generic.stat.base.stylize(),
gce_system_problem_count:
this.signals.gcpceOverview.systemProblemCount.asStat()
+ commonlib.panels.generic.stat.base.stylize(),
+ commonlib.panels.generic.stat.base.stylize(),
gce_top5_cpu_utilization:
this.signals.gcpceOverview.top5CpuUtilization.asTable(format='table')
+ commonlib.panels.generic.table.base.stylize()
+ g.panel.table.standardOptions.withOverrides([
+ commonlib.panels.generic.table.base.stylize()
+ g.panel.table.standardOptions.withOverrides([
{
matcher: {
id: 'byName',
Expand Down Expand Up @@ -939,40 +939,40 @@ local commonlib = import 'common-lib/common/main.libsonnet';
value: 'percent',
},
{
"id": "custom.cellOptions",
"value": {
"mode": "basic",
"type": "gauge",
"valueDisplayMode": "text"
}
id: 'custom.cellOptions',
value: {
mode: 'basic',
type: 'gauge',
valueDisplayMode: 'text',
},
},
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
id: 'thresholds',
value: {
mode: 'absolute',
steps: [
{
"color": "yellow",
"value": null
color: 'yellow',
value: null,
},
{
"color": "green",
"value": 30
color: 'green',
value: 30,
},
{
"color": "red",
"value": 85
}
]
}
color: 'red',
value: 85,
},
],
},
},
],
},
]),
gce_top5_system_problem:
this.signals.gcpceOverview.top5SystemProblem.asTable(format='table')
+ commonlib.panels.generic.table.base.stylize()
+ g.panel.table.standardOptions.withOverrides([
+ commonlib.panels.generic.table.base.stylize()
+ g.panel.table.standardOptions.withOverrides([
{
matcher: {
id: 'byName',
Expand Down Expand Up @@ -1000,9 +1000,9 @@ local commonlib = import 'common-lib/common/main.libsonnet';
]),
gce_top5_disk_write_bytes:
this.signals.gcpceOverview.top5DiskWrite.asTable(format='table')
+ commonlib.panels.generic.table.base.stylize()
+ g.panel.table.standardOptions.withUnit('bytes')
+ g.panel.table.standardOptions.withOverrides([
+ commonlib.panels.generic.table.base.stylize()
+ g.panel.table.standardOptions.withUnit('bytes')
+ g.panel.table.standardOptions.withOverrides([
{
matcher: {
id: 'byName',
Expand Down Expand Up @@ -1030,9 +1030,9 @@ local commonlib = import 'common-lib/common/main.libsonnet';
]),
gce_top5_disk_read_bytes:
this.signals.gcpceOverview.top5DiskRead.asTable(format='table')
+ commonlib.panels.generic.table.base.stylize()
+ g.panel.table.standardOptions.withUnit('bytes')
+ g.panel.table.standardOptions.withOverrides([
+ commonlib.panels.generic.table.base.stylize()
+ g.panel.table.standardOptions.withUnit('bytes')
+ g.panel.table.standardOptions.withOverrides([
{
matcher: {
id: 'byName',
Expand All @@ -1059,55 +1059,55 @@ local commonlib = import 'common-lib/common/main.libsonnet';
},
]),

// To do: add table
// To do: add table

gce_memory_utilization:
this.signals.gcpceOverview.memoryUtilization.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize()
+ this.signals.gcpceOverview.memoryUsed.asPanelMixin(),
gce_total_packets_sent_received:
this.signals.gcpceOverview.packetsSent.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize()
+ this.signals.gcpceOverview.packetsReceived.asPanelMixin(),
gce_network_send_received:
this.signals.gcpceOverview.networkSent.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize()
+ this.signals.gcpceOverview.networkReceived.asPanelMixin(),
gce_bytes_read_write:
this.signals.gcpceOverview.diskBytesRead.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize()
+ this.signals.gcpceOverview.diskBytesWrite.asPanelMixin(),

gce_memory_utilization:
this.signals.gcpceOverview.memoryUtilization.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize()
+ this.signals.gcpceOverview.memoryUsed.asPanelMixin(),
gce_total_packets_sent_received:
this.signals.gcpceOverview.packetsSent.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize()
+ this.signals.gcpceOverview.packetsReceived.asPanelMixin(),
gce_network_send_received:
this.signals.gcpceOverview.networkSent.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize()
+ this.signals.gcpceOverview.networkReceived.asPanelMixin(),
gce_bytes_read_write:
this.signals.gcpceOverview.diskBytesRead.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize()
+ this.signals.gcpceOverview.diskBytesWrite.asPanelMixin(),
gce_text_instances:
this.signals.gcpce.instancesText.as()
+ commonlib.panels.generic.text.base.stylize(),
gce_cpu_utilization:
this.signals.gcpce.cpuUtilization.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize()
+ g.panel.timeSeries.standardOptions.withUnit('percentunit'),
gce_network_received:
this.signals.gcpce.networkReceived.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize(),
gce_cpu_usage_time:
this.signals.gcpce.cpuUsageTime.asTimeSeries()
+ g.panel.timeSeries.standardOptions.withUnit('seconds')
+ commonlib.panels.generic.timeSeries.base.stylize(),
gce_network_sent:
this.signals.gcpce.networkSent.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize(),
gce_count_disk_read_bytes:
this.signals.gcpce.diskReadBytes.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize(),
gce_count_disk_read_operations:
this.signals.gcpce.diskReadOperations.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize(),
gce_count_disk_write_bytes:
this.signals.gcpce.diskWriteBytes.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize(),
gce_count_disk_write_operations:
this.signals.gcpce.diskWriteOperations.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize(),

gce_text_instances:
this.signals.gcpce.instancesText.as()
+ commonlib.panels.generic.text.base.stylize(),
gce_cpu_utilization:
this.signals.gcpce.cpuUtilization.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize()
+ g.panel.timeSeries.standardOptions.withUnit('percentunit'),
gce_network_received:
this.signals.gcpce.networkReceived.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize(),
gce_cpu_usage_time:
this.signals.gcpce.cpuUsageTime.asTimeSeries()
+ g.panel.timeSeries.standardOptions.withUnit('seconds')
+ commonlib.panels.generic.timeSeries.base.stylize(),
gce_network_sent:
this.signals.gcpce.networkSent.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize(),
gce_count_disk_read_bytes:
this.signals.gcpce.diskReadBytes.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize(),
gce_count_disk_read_operations:
this.signals.gcpce.diskReadOperations.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize(),
gce_count_disk_write_bytes:
this.signals.gcpce.diskWriteBytes.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize(),
gce_count_disk_write_operations:
this.signals.gcpce.diskWriteOperations.asTimeSeries()
+ commonlib.panels.generic.timeSeries.base.stylize(),


},
}
6 changes: 3 additions & 3 deletions csp-mixin/signals/gcpceOverview.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ function(this)
},
},

// To do: add Instances table
// To do: add Instances table

memoryUtilization: {
memoryUtilization: {
name: 'Memory Utilization',
description: 'Memory Utilization',
type: 'raw',
Expand Down Expand Up @@ -168,7 +168,7 @@ function(this)
},

networkReceived: {
name: 'Network throughput Sent/Received',
name: 'Network throughput Sent/Received',
description: 'Count of bytes sent/received over the network. Sampled every 60 seconds',
type: 'gauge',
unit: 'bytes',
Expand Down

0 comments on commit 1863b74

Please sign in to comment.