falcon-ngx_metric icon indicating copy to clipboard operation
falcon-ngx_metric copied to clipboard

脚本执行错误

Open fengallan0 opened this issue 6 years ago • 1 comments

我执行脚本以后就报下面的错,请问是什么导致的呢,谢谢! [root@fqy-nginx-4 falcon-ngx_metric]# python nginx_collect.py --format=falcon Traceback (most recent call last): File "nginx_collect.py", line 450, in collect append_datapoint(datapoints, Render.render(la)) File "nginx_collect.py", line 70, in render c = renders[la[0]] KeyError: ''

fengallan0 avatar Aug 09 '18 03:08 fengallan0

/usr/local/openresty/nginx/conf.d/ngx_metric.conf配置文件中lua_package_path一行配置为绝对路径 lua_package_path "/usr/local/openresty/nginx/modules/?.lua;;";

mykioer avatar Dec 17 '18 06:12 mykioer