Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yngvar-antonsson committed Apr 19, 2024
1 parent 51db665 commit a63967d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metrics/tarantool/memtx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ local function update()
-- Tarantool 3.0 memory statistics

local ok, memtx_stat_3 = pcall(box.stat.memtx)
if not ok then
if not ok or memtx_stat_3.data == nil or memtx_stat_3.index == nil then
return
end

Expand All @@ -144,11 +144,11 @@ local function update()
collectors_list.memtx_index_extents_total =
utils.set_gauge('memtx_index_extents_total',
'Total amount of memory allocated for indexing data',
memtx_stat_3.data.total, nil, nil, {default = true})
memtx_stat_3.index.total, nil, nil, {default = true})
collectors_list.memtx_index_extents_read_view =
utils.set_gauge('memtx_index_extents_read_view',
'Memory held for read views',
memtx_stat_3.data.read_view, nil, nil, {default = true})
memtx_stat_3.index.read_view, nil, nil, {default = true})

end

Expand Down

0 comments on commit a63967d

Please sign in to comment.