Code Monkey home page Code Monkey logo

Comments (2)

ncabatoff avatar ncabatoff commented on June 25, 2024

Thanks for the detailed bug report. Version 0.3.1+ contain a lot of new changes and should have been labelled pre-release (they are now). One issue I identified is that there were some /proc//status fields I depended upon that were only introduced in more recent kernels. I would definitely expect them to be present in kernel 4.17 though, so I'm not sure what's happening on your system.

Probably there's something else wrongheaded that I'm doing with the status file. For example, because I expect the Vm* fields to be present and treat it as an error if they aren't, kernel processes are failing to be scraped. I haven't decided exactly how I want to deal with that situation, but I will address it before I issue a stable release. I'll consider adding some debugging facilities as well.

from process-exporter.

mike42 avatar mike42 commented on June 25, 2024

I've just tested the 0.3.2 release, and it gives a successful scrape on my system, so I'll close this off. Thanks for your work on this exporter!

I've attached the scrape output (metrics.txt) and included some /proc snippets below, in case it can be used to add a unit test.

--

# cat /proc/188/stat
188 (bash) S 0 188 188 34818 256 4194560 1190 10638 9 93 4 2 165 41 20 0 1 0 87615 20434944 930 18446744073709551615 4194304 5242124 140720909478560 0 0 0 134283264 3670020 1266777851 1 0 0 17 2 0 0 0 0 0 7341384 7388228 34840576 140720909482127 140720909482137 140720909482137 140720909484014 0
# cat /proc/188/status
Name:	bash
Umask:	0022
State:	S (sleeping)
Tgid:	188
Ngid:	0
Pid:	188
PPid:	0
TracerPid:	0
Uid:	0	0	0	0
Gid:	0	0	0	0
FDSize:	256
Groups:	0 
NStgid:	188
NSpid:	188
NSpgid:	188
NSsid:	188
VmPeak:	   19956 kB
VmSize:	   19956 kB
VmLck:	       0 kB
VmPin:	       0 kB
VmHWM:	    3720 kB
VmRSS:	    3720 kB
RssAnon:	     608 kB
RssFile:	    3112 kB
RssShmem:	       0 kB
VmData:	     604 kB
VmStk:	     132 kB
VmExe:	    1024 kB
VmLib:	    2124 kB
VmPTE:	      80 kB
VmSwap:	       0 kB
HugetlbPages:	       0 kB
CoreDumping:	0
Threads:	1
SigQ:	0/127087
SigPnd:	0000000000000000
ShdPnd:	0000000000000000
SigBlk:	0000000008010000
SigIgn:	0000000000380004
SigCgt:	000000004b817efb
CapInh:	0000000000000000
CapPrm:	0000003cfdfcffff
CapEff:	0000003cfdfcffff
CapBnd:	0000003cfdfcffff
CapAmb:	0000000000000000
NoNewPrivs:	0
Seccomp:	2
Speculation_Store_Bypass:	thread force mitigated
Cpus_allowed:	ff
Cpus_allowed_list:	0-7
Mems_allowed:	00000000,00000001
Mems_allowed_list:	0
voluntary_ctxt_switches:	349
nonvoluntary_ctxt_switches:	41

from process-exporter.

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.