Skip to content

Commit 51db665

Browse files
fix luacheck
1 parent 4a18304 commit 51db665

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

metrics/tarantool/memtx.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,33 +122,33 @@ local function update()
122122

123123
-- Tarantool 3.0 memory statistics
124124

125-
local ok, memtx_stat = pcall(box.stat.memtx)
125+
local ok, memtx_stat_3 = pcall(box.stat.memtx)
126126
if not ok then
127127
return
128128
end
129129

130130
collectors_list.memtx_tuples_data_total =
131131
utils.set_gauge('memtx_tuples_data_total',
132132
'Total amount of memory allocated for data tuples',
133-
memtx_stat.data.total, nil, nil, {default = true})
133+
memtx_stat_3.data.total, nil, nil, {default = true})
134134
collectors_list.memtx_tuples_data_read_view =
135135
utils.set_gauge('memtx_tuples_data_read_view',
136136
'Memory held for read views',
137-
memtx_stat.data.read_view, {kind = "read_view"}, nil, {default = true})
137+
memtx_stat_3.data.read_view, {kind = "read_view"}, nil, {default = true})
138138
collectors_list.memtx_tuples_data_garbage =
139139
utils.set_gauge('memtx_tuples_data_garbage',
140140
'Memory that is unused and scheduled to be freed',
141-
memtx_stat.data.garbage, nil, nil, {default = true})
141+
memtx_stat_3.data.garbage, nil, nil, {default = true})
142142

143143

144144
collectors_list.memtx_index_extents_total =
145145
utils.set_gauge('memtx_index_extents_total',
146146
'Total amount of memory allocated for indexing data',
147-
memtx_stat.data.total, nil, nil, {default = true})
147+
memtx_stat_3.data.total, nil, nil, {default = true})
148148
collectors_list.memtx_index_extents_read_view =
149149
utils.set_gauge('memtx_index_extents_read_view',
150150
'Memory held for read views',
151-
memtx_stat.data.read_view, nil, nil, {default = true})
151+
memtx_stat_3.data.read_view, nil, nil, {default = true})
152152

153153
end
154154

0 commit comments

Comments
 (0)