Nginx Amplify分析器未显示指标

时间:2019-03-14 10:51:54

标签: python nginx metrics

我有Nginx Plus nginx / 1.15.2(nginx-plus-r16-p1),并且我还安装了Nginx Amplify agent

ngx_http_stub_status_module 也已启用,我的python版本为 2.7.6

我一切正常都与系统相关,但是我没有收到与 HTTP 相关的指标

代理日志显示以下内容,

2019-03-14 16:11:52,664 [31382] supervisor run failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/amplify/agent/managers/abstract.py", line 186, in _run
    self._discover()
  File "/usr/lib/python2.7/dist-packages/amplify/agent/managers/abstract.py", line 161, in _discover
    self._discover_objects()
  File "/usr/lib/python2.7/dist-packages/amplify/agent/managers/nginx.py", line 120, in _discover_objects
    new_obj = self._init_nginx_object(data=data)
  File "/usr/lib/python2.7/dist-packages/amplify/agent/managers/nginx.py", line 40, in _init_nginx_object
    return NginxObject(data=data)
  File "/usr/lib/python2.7/dist-packages/amplify/agent/objects/nginx/object.py", line 66, in __init__
    if self.api_enabled and plus.get_latest_supported_api(api_url) is None:
  File "/usr/lib/python2.7/dist-packages/amplify/agent/common/util/plus.py", line 28, in get_latest_supported_api
    api_versions_list = context.http_client.get(location_prefix, timeout=timeout, log=log)
  File "/usr/lib/python2.7/dist-packages/amplify/agent/common/util/http.py", line 131, in get
    return self.make_request(url, 'get', timeout=timeout, json=json, log=log)
  File "/usr/lib/python2.7/dist-packages/amplify/agent/common/util/http.py", line 110, in make_request
    raise e
ConnectionError: ('Connection aborted.', BadStatusLine("''",))

供参考,

enter image description here

0 个答案:

没有答案