Thanks for your reply Julius. One quick question can i pass the process id too , if yes how ?
On Fri, Apr 24, 2020 at 1:25 PM Julius Volz <[email protected]> wrote: > You should be able to just edit the "cmdline" regex part to match only the > processes that you mentioned: > > process_names: > - name: "{{.Comm}}" > cmdline: > - 'openam|opendj|tomcat' > > Depending on the exact names of the command-lines you may need to adjust > the regex or use one of the other selector types ("exe" or "comm", see > https://github.com/ncabatoff/process-exporter#using-a-config-file-process-selectors > ). > > On Thu, Mar 19, 2020 at 6:09 PM Pooja Chauhan <[email protected]> > wrote: > >> Hi , >> I am using process -exporter to monitor processes in my ec2 machine which >> has openam,opendj and tomcat ,I need to monitor these specifc processes >> only for my machine.Kindly suggest me the .yml configuration and also the >> way to do it.Currently my .yml is like below: >> >> process_names: >> - name: "{{.Comm}}" >> cmdline: >> - '.+' >> >> >> >> >> >> -- >> 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/4dd7807a-a58d-44a7-96f4-2c531f4ca9ad%40googlegroups.com >> <https://groups.google.com/d/msgid/prometheus-users/4dd7807a-a58d-44a7-96f4-2c531f4ca9ad%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/CA%2BT6YowLVfGo2qq4G8qdgOFSafrMmhUinFxZCOpYH%2B7hadPfGA%40mail.gmail.com > <https://groups.google.com/d/msgid/prometheus-users/CA%2BT6YowLVfGo2qq4G8qdgOFSafrMmhUinFxZCOpYH%2B7hadPfGA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Aashish Chugh -- 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/CAL8q3GRxY65ZhmaePyF7EToKuYxM2hnD3hudJXi15%2B3SRKU%2B_w%40mail.gmail.com.

