7 lines
225 B
Lua
7 lines
225 B
Lua
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 |