Skip to content

Commit 59ab239

Browse files
memory: final
1 parent 2c12699 commit 59ab239

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

dashboard/panels/runtime.libsonnet

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,7 @@ local variable = import 'dashboard/variable.libsonnet';
3939
labelY1='in bytes',
4040
panel_width=8,
4141
).addTarget(
42-
if cfg.type == variable.datasource_type.prometheus then
43-
prometheus.target(
44-
expr='rate(tnt_memory[$__rate_interval]) + rate(tnt_memory_virt[$__rate_interval])',
45-
legendFormat='{{alias}}'
46-
)
47-
else if cfg.type == variable.datasource_type.influxdb then
48-
influxdb.target()
42+
common.target(cfg, 'tnt_memory + tnt_memory_virt')
4943
),
5044

5145
resident_memory_per_instance(

0 commit comments

Comments
 (0)