{"action":"created","issue":{"url":"https://api.github.com/repos/mailru/graphite-nginx-module/issues/9","repository_url":"https://api.github.com/repos/mailru/graphite-nginx-module","labels_url":"https://api.github.com/repos/mailru/graphite-nginx-module/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/mailru/graphite-nginx-module/issues/9/comments","events_url":"https://api.github.com/repos/mailru/graphite-nginx-module/issues/9/events","html_url":"https://github.com/mailru/graphite-nginx-module/issues/9","id":178577395,"number":9,"title":"Can't use ngx.graphite() function to send metric data","user":{"login":"redice","id":266496,"avatar_url":"https://avatars.githubusercontent.com/u/266496?v=3","gravatar_id":"","url":"https://api.github.com/users/redice","html_url":"https://github.com/redice","followers_url":"https://api.github.com/users/redice/followers","following_url":"https://api.github.com/users/redice/following{/other_user}","gists_url":"https://api.github.com/users/redice/gists{/gist_id}","starred_url":"https://api.github.com/users/redice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redice/subscriptions","organizations_url":"https://api.github.com/users/redice/orgs","repos_url":"https://api.github.com/users/redice/repos","events_url":"https://api.github.com/users/redice/events{/privacy}","received_events_url":"https://api.github.com/users/redice/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-22T10:51:44Z","updated_at":"2016-09-23T09:42:44Z","closed_at":null,"body":"I failed to write ngx.graphite() function to send metric data. Could you give me some guide to solve it, thanks.\r\n\r\nMy environment is below\r\n# /usr/local/nginx/sbin/nginx -V\r\nnginx version: nginx/1.10.1\r\nbuilt by gcc 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)\r\nbuilt with OpenSSL 1.0.1s  1 Mar 2016\r\nTLS SNI support enabled\r\nconfigure arguments: --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_sub_module --with-http_flv_module --with-http_gzip_static_module --with-http_gunzip_module --with-http_secure_link_module --with-http_stub_status_module --with-mail --with-mail_ssl_module --with-ipv6 --with-http_dav_module --with-debug --with-stream --with-stream_ssl_module --with-openssl=../openssl-1.0.1s --add-module=../ngx_cache_purge-2.3 --add-module=../echo-nginx-module-0.58 --add-module=../nginx-http-auth-digest-master --with-ld-opt='-Wl,-rpath,/usr/local/luajit/lib /usr/local/src/gc.lua/mydata.o' --add-dynamic-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../lua-nginx-module-0.10.6 --add-dynamic-module=../graphite-nginx-module-1.1.0\r\n\r\nnginx.conf\r\n\r\nlocation /code {\r\n        graphite_param name=lua.abc aggregate=sum interval=10s;\r\n        content_by_lua_block {\r\n            ngx.graphite(\"lua.abc\", 0.01)\r\n            ngx.say(\"hello\")\r\n        }\r\n    }\r\n\r\nError messages below:\r\n2016/09/22 18:44:22 [debug] 1879#0: *1 lua run thread, top:0 c:1\r\n2016/09/22 18:44:22 [debug] 1879#0: *1 lua resume returned 2\r\n2016/09/22 18:44:22 [error] 1879#0: *1 lua entry thread aborted: runtime error: content_by_lua(rick.conf:100):2: attempt to call field 'graphite' (a nil value)\r\nstack traceback:\r\ncoroutine 0:\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mailru/graphite-nginx-module/issues/comments/249148377","html_url":"https://github.com/mailru/graphite-nginx-module/issues/9#issuecomment-249148377","issue_url":"https://api.github.com/repos/mailru/graphite-nginx-module/issues/9","id":249148377,"user":{"login":"kirimedia","id":6575451,"avatar_url":"https://avatars.githubusercontent.com/u/6575451?v=3","gravatar_id":"","url":"https://api.github.com/users/kirimedia","html_url":"https://github.com/kirimedia","followers_url":"https://api.github.com/users/kirimedia/followers","following_url":"https://api.github.com/users/kirimedia/following{/other_user}","gists_url":"https://api.github.com/users/kirimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/kirimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirimedia/subscriptions","organizations_url":"https://api.github.com/users/kirimedia/orgs","repos_url":"https://api.github.com/users/kirimedia/repos","events_url":"https://api.github.com/users/kirimedia/events{/privacy}","received_events_url":"https://api.github.com/users/kirimedia/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T09:42:44Z","updated_at":"2016-09-23T09:42:44Z","body":"I have added a patch to lua module version> = 0.10.6\r\nhttps://github.com/mailru/graphite-nginx-module/blob/master/lua_module_v0_10_6.patch"}}
{"actor":{"display_login":"kirimedia"}}