Giter Site home page Giter Site logo

Comments (2)

ncabatoff avatar ncabatoff commented on May 28, 2024

There is an existing option that should satisfy your need: enable thread-based metrics using the -threads option. Then use the metric namedprocess_namegroup_thread_cpu_seconds_total.

I've updated the README to give more details.

from process-exporter.

PeterZaitsev avatar PeterZaitsev commented on May 28, 2024

Hi Nick,

I was able to verify your solution and it does not work. --threads seems to do the grouping by thread name and not thread_id, which are really set in reality even if they are they are not unique.

For example for MySQL I see:

namedprocess_namegroup_thread_cpu_seconds_total{cpumode="user",groupname="mysqld",threadname="mysqld"} 1.1299999999996544

Only one line even through MySQL has 300 threads on this box.

I think being able to spot the hot threads is quite valuable as CPU usage itself does not make a difference whenever one thread was using CPU or multiple

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.