Hi Danny,

I would recommend raise that question directly with the upstream repo - you
are much more likely to get an answer than in this much wider group :)

Best,

Ian

On Fri, Jun 25, 2021 at 11:02 AM Danny de Waard <[email protected]> wrote:

> Maybe not the correct group but i want to count certain processes with
> process-exporter. But i can't seem to figure out how to seperate them.
>
> I do a simple search now with this config:
> process_names:
> # comm is the second field of /proc/<pid>/stat minus parens.
> # It is the base executable name, truncated at 15 chars.
> # It cannot be modified by the program, unlike exe.
>   - comm:
>     - java
>     - node_exporter
>     - process-exporte
>     - java8
>     - Agent.Listner
>     - splunkd
>     - tee
>
> But what i want is a seperation of java processes on a argument.
>
> So i have some processes like:
> /usr/bin/sh -c /usr/lib/jvm/jre-11-openjdk/bin/java <parameterA>
> /usr/bin/sh -c /usr/lib/jvm/jre-11-openjdk/bin/java <parameterB>
> /usr/lib/jvm/jre-11-openjdk/bin/java <parameterC>
> /usr/lib/jvm/jre-11-openjdk/bin/java <parameterD>
>
> How do i count/monitor them seperatly?
>
> Should i do something with:
>   - name: "{{.Comm}}<and_more>"
>     cmdline:
>     - '.+<some_regex>'
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/3b69bd63-3151-482c-ba7c-8dd6c55a8b29n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/3b69bd63-3151-482c-ba7c-8dd6c55a8b29n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CADoMBNVXX-Z4cJXF%2BCgS2V%2BgB9pwhQ%2BBSx-u4BuVR_ELAMz9TA%40mail.gmail.com.

Reply via email to