I am trying to collect the metrics of each instance cpu,memory,etc using the LibvirtKvm collectors and trying to store the metrics in opentsdb server. Unfortunately other collectors which I have tried was working fine.
For eg : Kvm,cpu,vmstats,memory etc.
But the LibvirtKvm collector was not working and we have noticed the python error on log file which mentioned below:
[2016-01-20 11:01:13,018] [MainThread] Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/diamond/handler/Handler.py", line 74, in _process
self.process(metric)
File "/usr/lib/python2.6/site-packages/diamond/handler/tsdb.py", line 114, in process
Collector=metric.getCollectorPath(),
File "/usr/lib/python2.6/site-packages/diamond/metric.py", line 143, in getCollectorPath
offset = self.path.index(self.host)
ValueError: substring not found
Could you please share your tips to resolve the problem. Thanks for reading my post using your valuable time.
Hi,
I am trying to collect the metrics of each instance cpu,memory,etc using the LibvirtKvm collectors and trying to store the metrics in opentsdb server. Unfortunately other collectors which I have tried was working fine.
For eg : Kvm,cpu,vmstats,memory etc.
But the LibvirtKvm collector was not working and we have noticed the python error on log file which mentioned below:
[2016-01-20 11:01:13,018] [MainThread] Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/diamond/handler/Handler.py", line 74, in _process self.process(metric) File "/usr/lib/python2.6/site-packages/diamond/handler/tsdb.py", line 114, in process Collector=metric.getCollectorPath(), File "/usr/lib/python2.6/site-packages/diamond/metric.py", line 143, in getCollectorPath offset = self.path.index(self.host) ValueError: substring not found
Could you please share your tips to resolve the problem. Thanks for reading my post using your valuable time.