Giter Site home page Giter Site logo

Comments (4)

 avatar commented on June 26, 2024

Do you have a "data" pool in your Ceph cluster? Line 54 in ceph_latency_plugin.py shows that the pool name of "data" is hardcoded.

from collectd-ceph.

bobrik avatar bobrik commented on June 26, 2024

Yes, I do have it. It doesn't fail all the time too.

from collectd-ceph.

 avatar commented on June 26, 2024

I changed line 54 to

"timeout 30s rados --cluster "+ self.cluster +" -p "+ self.testpool +" bench 10 write -t 1 -b 65536 2>/dev/null | grep -i latency | awk '{print 1000*$3}'", shell=True)

for testing, and since then it didn't fail anymore.

cheers
Mathias

from collectd-ceph.

resyst-it avatar resyst-it commented on June 26, 2024

ceph: failed to get stats :: list index out of range :: Traceback (most recent call last):#12 File "/opt/collectd/plugins/base.py", line 114, in read_callback#012 stats = self.get_stats()#12 File "/opt/collectd/plugins/ceph_latency_plugin.py", line 67, in get_stats#012 data[ceph_cluster]['cluster']['stddev_latency'] = results[1]#012IndexError: list index out of range

I have this error. I have no data pool. And i have changed the line 54 by this 👍
timeout 30s rados --cluster "+ self.cluster +" -p "+ self.testpool +" bench 10 write -t 1 -b 65536 2>/dev/null | grep -i latency | awk '{print 1000*$3}'", shell=True)

But i have this error ... Do you have an idea ?

Thank you.

from collectd-ceph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.