wrk.method = "POST" wrk.headers["Content-Type"] = "application/json" function request() local body = '{"metric":"cpu_usage","timestamp":' .. os.time() .. ',"value":42.3}' return wrk.format(nil, "/metrics", nil, body) end