Skip to content

Commit be814a1

Browse files
dashboard: add runtime arena memory panel
Add "Runtime arena memory" panel to "Tarantool runtime overview" section. It displays tnt_runtime_used default metric. Rename "Lua runtime memory" panel to "Lua memory" to not confuse users after adding"Runtime arena memory" panel. Update panel description so it would be easier to understand the differences between two panels. Closes #140
1 parent e5f6494 commit be814a1

13 files changed

+2533
-1386
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## Added
1010
- Options to build static dashboards
11+
- Runtime arena memory panel
1112

1213
## Changed
1314
- Set default Prometheus job to `tarantool`

dashboard/panels/runtime.libsonnet

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ local common = import 'dashboard/panels/common.libsonnet';
44
row:: common.row('Tarantool runtime overview'),
55

66
lua_memory(
7-
title='Lua runtime memory',
7+
title='Lua memory',
88
description=|||
9-
Memory used for the Lua runtime.
9+
Memory used for objects allocated with Lua
10+
by using its internal mechanisms.
1011
Lua memory is bounded by 2 GB per instance.
1112
|||,
1213
datasource_type=null,
@@ -20,7 +21,7 @@ local common = import 'dashboard/panels/common.libsonnet';
2021
datasource=datasource,
2122
format='bytes',
2223
labelY1='in bytes',
23-
panel_width=12,
24+
panel_width=8,
2425
).addTarget(common.default_metric_target(
2526
datasource_type,
2627
'tnt_info_memory_lua',
@@ -29,6 +30,38 @@ local common = import 'dashboard/panels/common.libsonnet';
2930
measurement
3031
)),
3132

33+
runtime_memory(
34+
title='Runtime arena memory',
35+
description=|||
36+
Memory used by runtime arena.
37+
Runtime arena stores network buffers, tuples
38+
created with box.tuple.new and other objects
39+
allocated by application not covered by basic
40+
Lua mechanisms (spaces data and indexes
41+
are not included here, see memtx/vinyl arena).
42+
|||,
43+
datasource_type=null,
44+
datasource=null,
45+
policy=null,
46+
measurement=null,
47+
job=null,
48+
):: common.default_graph(
49+
title=title,
50+
description=description,
51+
datasource=datasource,
52+
format='bytes',
53+
labelY1='in bytes',
54+
legend_avg=false,
55+
legend_max=false,
56+
panel_width=8,
57+
).addTarget(common.default_metric_target(
58+
datasource_type,
59+
'tnt_runtime_used',
60+
job,
61+
policy,
62+
measurement
63+
)),
64+
3265
memory_tx(
3366
title='Transactions memory',
3467
description=|||
@@ -48,7 +81,7 @@ local common = import 'dashboard/panels/common.libsonnet';
4881
datasource=datasource,
4982
format='bytes',
5083
labelY1='in bytes',
51-
panel_width=12,
84+
panel_width=8,
5285
).addTarget(common.default_metric_target(
5386
datasource_type,
5487
'tnt_info_memory_tx',

dashboard/section.libsonnet

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,14 @@ local tdg_tuples = import 'dashboard/panels/tdg/tuples.libsonnet';
627627
job=job,
628628
),
629629

630+
runtime.runtime_memory(
631+
datasource_type=datasource_type,
632+
datasource=datasource,
633+
policy=policy,
634+
measurement=measurement,
635+
job=job,
636+
),
637+
630638
runtime.memory_tx(
631639
datasource_type=datasource_type,
632640
datasource=datasource,

0 commit comments

Comments
 (0)