Coletor de diamantes sendo finalizado

2

Estamos executando um coletor de diamantes para coletar métricas do sistema e exibi-las em um gráfico. No entanto, quando tento executar o serviço usando service diamond start , ele será iniciado, mas será imediatamente finalizado. Eu tentei encontrar o log. Syslog diz

init: diamond main process (32501) terminated with status 1

Os seguintes são os /etc/log/diamond/diamond.log

[2016-09-11 08:07:25,649] [MainThread] Can not find collector AppMetricCollector
[2016-09-11 08:07:29,713] [MainThread] Collector failed!
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/diamond/utils/scheduler.py", line 73, in collector_process
    collector._run()
  File "/usr/lib/pymodules/python2.7/diamond/collector.py", line 472, in _run
    self.collect()
  File "/usr/share/diamond/collectors/memory_docker/memory_docker.py", line 34, in collect
    for c in docker.Client().containers(all=True)
  File "/usr/local/lib/python2.7/dist-packages/docker/api/container.py", line 70, in containers
    res = self._result(self._get(u, params=params), True)
  File "/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py", line 47, in inner
    return f(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 120, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 487, in get
    return self.request('GET', url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 585, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 453, in send
    raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', error(2, 'No such file or directory'))
[2016-09-11 08:07:33,719] [MainThread] Error while fetching server API version: ('Connection aborted.', error(2, 'No such file or directory'))
Traceback (most recent call last):
  File "/usr/share/diamond/collectors/docker_collector/docker_collector.py", line 67, in collect
    client = docker.Client(version='auto')
  File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 81, in __init__
    self._version = self._retrieve_server_version()
  File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 105, in _retrieve_server_version
"diamond.log.2016-09-11" [readonly] 131088L, 9082758C                                                                         1,1           Top

Por favor, me guie sobre como eu posso investigar mais.

    
por Vardhaman Shetti 14.09.2016 / 21:57

0 respostas

Tags