Code Monkey home page Code Monkey logo

Comments (6)

amitsingla avatar amitsingla commented on July 23, 2024

@zelonkaa Hi, i am facing the same issue. Are you able to figure out why it it showing the higher number of processes ?. Below is the part of the ConfigMap. i have only 2 processes running but process-exporter metrics are showing as 6. I am not able to figure out what's wrong with my config Map

namedprocess_namegroup_num_procs{groupname="/usr/bin/bash:-c:/usr/bin/journalctl"} 6

  • name: /usr/bin/bash:-c:/usr/bin/journalctl
    exe:
    - /usr/bin/bash
    cmdline:
    - -c
    - /usr/bin/journalctl

from process-exporter.

zelonkaa avatar zelonkaa commented on July 23, 2024

hi @amitsingla it really looks similar but in fact isn't.

What the process exporter looks for with my current understanding is the following:
pid=180176 -> process_exporter
ls -la /proc/180176/{comm,exe,cmdline}
-r--r--r-- 1 root root 0 May 2 16:56 /proc/180176/cmdline
-rw-r--r-- 1 root root 0 May 4 12:13 /proc/180176/comm
lrwxrwxrwx 1 root root 0 May 2 16:56 /proc/180176/exe -> /usr/local/bin/prometheus_process_exporter/prometheus_process_exporter

As far as I understand the documentation, only if you use the cmdline-Check in the config.yml , these expressions have all to match in order to find a process (logical-AND), in the other cases you have (logical-OR).

In your case if you have any "/usr/bin/bash"-Processes, they are listed as well.

In my case it doesn't matter, either with or without other parameters (EXE/COMM/CMDLINE) I always get the same amount of processes found.

from process-exporter.

ncabatoff avatar ncabatoff commented on July 23, 2024

Note that by default, the -children argument is true, meaning any child processes of the matched processes will be included in the group.

from process-exporter.

zelonkaa avatar zelonkaa commented on July 23, 2024

Thanks for the hint, I thought that it could be an issue with this parameter. Tried with and without "-children false", in both cases I get the same amount of processes (34) as a metric.

from process-exporter.

ncabatoff avatar ncabatoff commented on July 23, 2024

The newest pre-release 0.3.7 includes a -debug option that may answer your question. I suggest using it with the -once-to-stdout option as it produces quite a lot of output.

from process-exporter.

ncabatoff avatar ncabatoff commented on July 23, 2024

Closing due to inactivity, feel free to reopen if you're still having issues.

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.