File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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(
@@ -106,6 +100,7 @@ local variable = import 'dashboard/variable.libsonnet';
106100 aggregate_expr(cfg, 'tnt_memory_virt' ),
107101 ]
108102 ),
103+ legendFormat='{{alias}}' ,
109104 )
110105 else if cfg.type == variable.datasource_type.influxdb then
111106 influxdb.target()
You can’t perform that action at this time.
0 commit comments