1
0
mirror of https://github.com/cmur2/nginx-metrics-graphite.git synced 2024-11-14 16:56:16 +01:00
This commit is contained in:
cn 2017-03-01 23:31:25 +01:00
parent 9dd92660b9
commit 07d3d51705

View File

@ -87,7 +87,7 @@ function MetricsGraphite:worker()
-- then do the work which might incur delays
-- submit the metrics to each configured carbon host
for i,carbon_host in this.carbon_hosts do
for i,carbon_host in ipairs(this.carbon_hosts) do
local sock, err = ngx.socket.tcp()
if err then
ngx.log(ngx.ERR, "nginx-metrics-graphite callback failed to create carbon host #" .. i .. " socket: ", err)