Skip to content
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

namedprocess_namegroup_read_bytes_total seems to be always zero #66

Closed
martivo opened this issue Sep 19, 2018 · 2 comments
Closed

namedprocess_namegroup_read_bytes_total seems to be always zero #66

martivo opened this issue Sep 19, 2018 · 2 comments

Comments

@martivo
Copy link

martivo commented Sep 19, 2018

Hi,
it seems namedprocess_namegroup_read_bytes_total is always 0.
namedprocess_namegroup_write_bytes_total seems to be OK.

Using latest version 0.4.0

# uname -a
Linux driver 3.8.0-44-generic #66~precise1-Ubuntu SMP Tue Jul 15 04:01:04 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Configuration:

process_names:
  - exe: 
    - /opt/java/jdk1.8.0_92/bin/java
    cmdline: 
    - com.connecty.collector.DataCollector
    name: collector
  - exe:
    - /opt/java/jdk1.8.0_92/bin/java
    cmdline:
    - -Dcatalina.base=/var/lib/tomcat/fm
    name: fm
  - exe:
    - /opt/java/jdk1.8.0_92/bin/java
    cmdline:
    - -Dcatalina.base=/var/lib/tomcat/mk3
    name: mk3
  - exe:
    - node
    name: node
  - exe:
    - /usr/bin/redis-server
    name: redis
@ncabatoff
Copy link
Owner

Sorry I never got back to you @mardicas. Ultimately this is an OS question, how Linux assigns these counters is complicated and I've never fully understood it. I don't take the I/O metrics too literally, as noted in the README, though they can be useful sometimes e.g. to figure out which process is causing a lot of disk of activity. See #95 for an example demonstrating that the counters can be nonzero.

@diborodin
Copy link

diborodin commented Dec 20, 2023

Faced the same issue. Please make sure the process-exporter processes is run with the root user privileges, otherwise namedprocess_namegroup_read_bytes_total and namedprocess_namegroup_write_bytes_total are both 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants