Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

check whether box.cfg called #9

Merged
merged 2 commits into from
Jul 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions tarantool-metrics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,12 @@ local function measure_tarantool_space_stats()
end

local function measure_tarantool_metrics()
measure_tarantool_memory_usage()
measure_tarantool_request_stats()
measure_tarantool_uptime()
measure_tarantool_space_stats()
if type(box.cfg) ~= 'function' then
measure_tarantool_memory_usage()
measure_tarantool_request_stats()
measure_tarantool_uptime()
measure_tarantool_space_stats()
end
end

return {measure_tarantool_metrics=measure_tarantool_metrics}