Git Product home page Git Product logo

Comments (8)

jd avatar jd commented on May 28, 2024

You can pass the --debug flag to pifpaf so it prints program output debug to stdout. Is there anything specific that you are trying to debug that is not covered by this option?

from pifpaf.

chungg avatar chungg commented on May 28, 2024

let me try again, when i did --debug all that was printed was the startup information of the driver. i couldn't see metricd.logs.

trying to see what is happening internally. ie for example, if gnocchi is really backed up or processing very slow, from API i can only tell i don't see expected measures but not real issue behind it. if there's a better way to debug this than i'm up for trying that :)

from pifpaf.

jd avatar jd commented on May 28, 2024

Right, that's a much better explanation of your problem. No, currently there's no way to have logs because they are not configured. But it should be pretty easy to change the Gnocchi driver to make Gnocchi write log files (when --debug is used) in pifpaf's temporary directory. Let me give it a try.

from pifpaf.

jd avatar jd commented on May 28, 2024

@chungg Can you give a try to the branch above to see if that helps? This passes debug = true to Gnocchi when pifpaf --debug is used, the log should be available on stderr, not only the startup one then.

from pifpaf.

chungg avatar chungg commented on May 28, 2024

got following (i might have edited env wrong):

ERROR: pifpaf: Traceback (most recent call last):
File "/opt/stack/gnocchi/.tox/py27-mysql-file/lib/python2.7/site-packages/fixtures/fixture.py", line 197, in setUp
self._setUp()
File "/opt/stack/gnocchi/.tox/py27-mysql-file/lib/python2.7/site-packages/pifpaf/drivers/gnocchi.py", line 154, in _setUp
url = %s""" % (self.debug,
AttributeError: 'GnocchiDriver' object has no attribute 'debug'

from pifpaf.

jd avatar jd commented on May 28, 2024

Weird, works here. Did you checkout the entire branch at https://github.com/jd/pifpaf/tree/jd/gnocchi-log ? there's 2 commits and the first one adds self.debug to drivers.

from pifpaf.

chungg avatar chungg commented on May 28, 2024

yeah, i missed the first commit. i just gave it a shot and it gives gnocchi metricd output. one issue is that it seems to be only giving logs from the initial startup of service. when running in tox against tests, it doesn't actually show what is happening when tests are running (unless this is being written to somewhere other than stdout)

from pifpaf.

jd avatar jd commented on May 28, 2024

If you type pifpaf --debug run gnocchi $SHELL you'll see the constant output from metricd on stderr, which tends to indicate that it works. There might be something in tox eating the output?

from pifpaf.

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.