У меня есть 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("''",))
Для справки,