Comments (8)
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.
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.
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.
@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.
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.
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.
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.
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)
- Issue running rabbitmq HOT 1
- postgresql: usage of pg_config makes it dependant on libpq-dev or postgresql-server-dev (on debian) HOT 3
- Add qdrouterd support HOT 2
- Add apache artemis support HOT 1
- pifpaf psutil.AccessDenied HOT 1
- postgresql: configure the server for speed
- pifpaf fails to start elasticsearch on Debian HOT 6
- Waits forever on etcd when using etcd 3.4 HOT 1
- Missing git tags for 3.1.3 and 3.1.4 releases HOT 1
- terminating PIFPAF_PID hangs forever in 3.1.4 (works in 3.1.1) HOT 12
- pifpaf needs a new maintainer HOT 10
- Ceph driver hangs with HEALTH_WARN HOT 3
- setuptools warnings
- PEP517 HOT 1
- Allow to pass --debug flag via environment variable
- Tests hang on Python 3.6 HOT 4
- swift master broken
- pip install pifpaf in ubuntu 16.04 with python 3 is broken HOT 4
- Tests on Travis fail with `sequence item 1: expected a bytes-like object, str found` HOT 4
- Trouble installing and running pifpaf 1.12.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pifpaf.