Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
I'm using latest version of diamond installed from pip
$ diamond --version
Diamond version 4.0.515
Got exception
1501479599.29 [ProcessResourcesCollector:20455:ERROR] /tmp/py2/local/lib/python2.7/site-packages/diamond/utils/scheduler.py:99
Traceback (most recent call last):
File "/tmp/py2/local/lib/python2.7/site-packages/diamond/utils/scheduler.py", line 73, in collector_process
collector._run()
File "/tmp/py2/local/lib/python2.7/site-packages/diamond/collector.py", line 477, in _run
self.collect()
File "/tmp/py2/share/diamond/collectors/processresources/processresources.py", line 198, in collect
self.collect_process_info(process)
File "/tmp/py2/share/diamond/collectors/processresources/processresources.py", line 178, in collect_process_info
pi = process_info(process, self.config['info_keys'])
File "/tmp/py2/share/diamond/collectors/processresources/processresources.py", line 78, in process_info
process_info = process.as_dict(info_keys)
File "/tmp/py2/local/lib/python2.7/site-packages/psutil/__init__.py", line 552, in as_dict
", ".join(map(repr, invalid_names))))
ValueError: invalid attr name 'memory_info_ex'
Seem caused by new version of psutil removed the memory_info_ex
I'm using latest version of diamond installed from pip
Got exception
Seem caused by new version of psutil removed the
memory_info_ex
The
memory_info_ex
introduced in https://github.com/python-diamond/Diamond/commit/4b8b13f24b7d7332d9fa42fd56723f8cd94f2e9e#diff-06a2be2c3ff6b70d9d12032be5653241R14For now, to workaround, I just remove
memory_info_ex
frominfo_keys
config of the collector.