File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,29 @@ local variable = import 'dashboard/variable.libsonnet';
2626 ),
2727
2828 total_memory(
29+ cfg,
30+ title='Total memory' ,
31+ description=|||
32+ Total memory used by Tarantool.
33+ ||| ,
34+ ):: common.default_graph(
35+ cfg,
36+ title=title,
37+ description=description,
38+ format='bytes' ,
39+ labelY1='in bytes' ,
40+ panel_width=8 ,
41+ ).addTarget(
42+ if cfg.type == variable.datasource_type.prometheus then
43+ prometheus.target(
44+ expr='sum(tnt_memory{job=~"$job"}) + sum(tnt_memory_virt{job=~"$job"}' ),
45+ legendFormat='{{alias}}' ,
46+ )
47+ else if cfg.type == variable.datasource_type.influxdb then
48+ influxdb.target()
49+ ),
50+
51+ resident_memory(
2952 cfg,
3053 title='Resident memory' ,
3154 description=|||
@@ -37,7 +60,7 @@ local variable = import 'dashboard/variable.libsonnet';
3760 description=description,
3861 format='bytes' ,
3962 labelY1='in bytes' ,
40- panel_width=12 ,
63+ panel_width=8 ,
4164 ).addTarget(
4265 common.target(cfg, 'tnt_memory' )
4366 ).addTarget(
@@ -59,7 +82,7 @@ local variable = import 'dashboard/variable.libsonnet';
5982 description=description,
6083 format='bytes' ,
6184 labelY1='in bytes' ,
62- panel_width=12 ,
85+ panel_width=8 ,
6386 ).addTarget(
6487 common.target(cfg, 'tnt_memory_virt' )
6588 ).addTarget(
Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ local vinyl = import 'dashboard/panels/vinyl.libsonnet';
240240 runtime(cfg):: [
241241 runtime.row,
242242 runtime.total_memory(cfg),
243+ runtime.resident_memory(cfg),
243244 runtime.virt_memory(cfg),
244245 runtime.lua_memory(cfg),
245246 runtime.runtime_memory(cfg),
You can’t perform that action at this time.
0 commit comments