Skip to content

Commit 9dd7bfc

Browse files
committed
make fmt and re-add description for gauge?
1 parent bcd09f0 commit 9dd7bfc

File tree

2 files changed

+41
-40
lines changed

2 files changed

+41
-40
lines changed

clickhouse-mixin/panels.libsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ local commonlib = import 'common-lib/common/main.libsonnet';
117117
memoryUsageGaugePanel:
118118
g.panel.gauge.new('Memory usage')
119119
+ g.panel.gauge.queryOptions.withTargets([signals.memory.memoryUsagePercent.asTarget()])
120+
+ g.panel.gauge.panelOptions.withDescription('Percentage of memory allocated by ClickHouse compared to OS total')
120121
+ g.panel.gauge.queryOptions.withDatasource('prometheus', '${' + this.grafana.variables.datasources.prometheus.name + '}')
121122
+ g.panel.gauge.options.withShowThresholdLabels(true)
122123
+ g.panel.gauge.standardOptions.thresholds.withSteps([

clickhouse-mixin/rows.libsonnet

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,46 @@ local g = import './g.libsonnet';
22
local panels = import './panels.libsonnet';
33

44
{
5-
new(this): {
6-
replicaOperationsPanels: [
7-
this.grafana.panels.interserverConnectionsPanel { gridPos+: { w: 12 } },
8-
this.grafana.panels.replicaQueueSizePanel { gridPos+: { w: 12 } },
9-
this.grafana.panels.replicaOperationsPanel { gridPos+: { w: 12 } },
10-
this.grafana.panels.replicaReadOnlyPanel { gridPos+: { w: 12 } },
11-
],
5+
new(this): {
6+
replicaOperationsPanels: [
7+
this.grafana.panels.interserverConnectionsPanel { gridPos+: { w: 12 } },
8+
this.grafana.panels.replicaQueueSizePanel { gridPos+: { w: 12 } },
9+
this.grafana.panels.replicaOperationsPanel { gridPos+: { w: 12 } },
10+
this.grafana.panels.replicaReadOnlyPanel { gridPos+: { w: 12 } },
11+
],
1212

13-
replicaZookeeperPanels: [
14-
this.grafana.panels.zooKeeperWatchesPanel { gridPos+: { w: 12 } },
15-
this.grafana.panels.zooKeeperSessionsPanel { gridPos+: { w: 12 } },
16-
this.grafana.panels.zooKeeperRequestsPanel { gridPos+: { w: 24 } },
17-
],
18-
13+
replicaZookeeperPanels: [
14+
this.grafana.panels.zooKeeperWatchesPanel { gridPos+: { w: 12 } },
15+
this.grafana.panels.zooKeeperSessionsPanel { gridPos+: { w: 12 } },
16+
this.grafana.panels.zooKeeperRequestsPanel { gridPos+: { w: 24 } },
17+
],
1918

20-
overviewQueriesPanels: [
21-
this.grafana.panels.successfulQueriesPanel { gridPos+: { w: 24 } },
22-
this.grafana.panels.failedQueriesPanel { gridPos+: { w: 12 } },
23-
this.grafana.panels.rejectedInsertsPanel { gridPos+: { w: 12 } },
24-
],
25-
overviewMemoryPanels: [
26-
this.grafana.panels.memoryUsagePanel { gridPos+: { w: 12 } },
27-
this.grafana.panels.memoryUsageGaugePanel { gridPos+: { w: 12 } },
28-
],
29-
overviewNetworkPanels: [
30-
this.grafana.panels.activeConnectionsPanel { gridPos+: { w: 24 } },
31-
this.grafana.panels.networkReceivedPanel { gridPos+: { w: 12 } },
32-
this.grafana.panels.networkTransmittedPanel { gridPos+: { w: 12 } },
33-
],
3419

35-
latencyDiskPanels: [
36-
this.grafana.panels.diskReadLatencyPanel { gridPos+: { w: 12 } },
37-
this.grafana.panels.diskWriteLatencyPanel { gridPos+: { w: 12 } },
38-
],
39-
latencyNetworkPanels: [
40-
this.grafana.panels.networkTransmitLatencyInboundPanel { gridPos+: { w: 12 } },
41-
this.grafana.panels.networkTransmitLatencyOutboundPanel { gridPos+: { w: 12 } },
42-
],
43-
latencyZooKeeperPanels: [
44-
this.grafana.panels.zooKeeperWaitTimePanel { gridPos+: { w: 24 } },
45-
],
46-
}
47-
}
20+
overviewQueriesPanels: [
21+
this.grafana.panels.successfulQueriesPanel { gridPos+: { w: 24 } },
22+
this.grafana.panels.failedQueriesPanel { gridPos+: { w: 12 } },
23+
this.grafana.panels.rejectedInsertsPanel { gridPos+: { w: 12 } },
24+
],
25+
overviewMemoryPanels: [
26+
this.grafana.panels.memoryUsagePanel { gridPos+: { w: 12 } },
27+
this.grafana.panels.memoryUsageGaugePanel { gridPos+: { w: 12 } },
28+
],
29+
overviewNetworkPanels: [
30+
this.grafana.panels.activeConnectionsPanel { gridPos+: { w: 24 } },
31+
this.grafana.panels.networkReceivedPanel { gridPos+: { w: 12 } },
32+
this.grafana.panels.networkTransmittedPanel { gridPos+: { w: 12 } },
33+
],
34+
35+
latencyDiskPanels: [
36+
this.grafana.panels.diskReadLatencyPanel { gridPos+: { w: 12 } },
37+
this.grafana.panels.diskWriteLatencyPanel { gridPos+: { w: 12 } },
38+
],
39+
latencyNetworkPanels: [
40+
this.grafana.panels.networkTransmitLatencyInboundPanel { gridPos+: { w: 12 } },
41+
this.grafana.panels.networkTransmitLatencyOutboundPanel { gridPos+: { w: 12 } },
42+
],
43+
latencyZooKeeperPanels: [
44+
this.grafana.panels.zooKeeperWaitTimePanel { gridPos+: { w: 24 } },
45+
],
46+
},
47+
}

0 commit comments

Comments
 (0)