-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to view named process in grafana #9
Comments
I can speculate, but I'm more likely to give you something useful if you provide the command line you use to launch the container and the output of your GET /metrics call. |
This is a part of my docker compose file for the process exporter
|
Output from localhost:9256/metrics
|
I tried running it with a docker-compose based on what you provided and wasn't able to reproduce the problem. I don't know what the problem is, but I suggest getting it working without Docker first, for simplicity. You might also try using a config file that just captures everything, e.g.
I don't recommend running it that way long-term, but it could help identify where the problem lies. |
I'm actually having a similar problem on a Nvidia Jetson TK1 board (ARMv7) with kernel 3.10.40 running it "natively" so without docker: Any ideas? |
@flixr have you tried running the tests? I assume you have since you say you ran latest master, and you probably ran 'make' to build it, which runs the tests, but I just wanted to be sure. Assuming you have run make on the ARM machine, the tests in read_test.go passing indicate it likely isn't a problem actually collecting metrics from /proc. Have you tried querying the exporter without going through Grafana? Just e.g. curl -s localhost:9256/metrics ? Is the metric namedprocess_scrape_errors == 0? If those ideas don't yield a solution, please open a new issue. I don't assume your problem and @lakshmanvvs's are the same, and I think it would be less confusing if we kept them separate until such time as we determine otherwise. |
Yes, the tests passed and there were no scrape_errors. |
Closing due to inactivity and because I couldn't reproduce the problem. |
I have run through the same error. For my case, In my case, I have resolved the issue by running the process with |
@ouadi That's the expected behaviour. |
@ncabatoff I'm trying to figure out if process-exporter should run as root since I couldn't find this information anywhere. Considering the answer you gave to @ouadi I can assume it needs to be run as root. |
It's best to run it as root for general purpose monitoring, but if you just need to monitor a particular user's processes you can run it as that user. |
I'm using the docker image for this, but unable to view any data points for named_process.
What could be missing?
The text was updated successfully, but these errors were encountered: