Giter VIP home page Giter VIP logo

Comments (4)

martinrusev avatar martinrusev commented on July 4, 2024

@codeisallaround Can you try listing them with pidstat -ruhtd? The agent relies on sysstat for process metrics

https://github.com/amonapp/amonagent/blob/master/collectors/processes.go#L45

from amonagent.

codeisallaround avatar codeisallaround commented on July 4, 2024

Thanks, it was my mistake.

I just looked at the makefile. The deb would install systat. I had compiled the arm binary from source and run it without using the deb file. With systat enabled it, processes object is filled with data.

from amonagent.

codeisallaround avatar codeisallaround commented on July 4, 2024

I closed it too early.

pidstat -ruht shows me correct values but amonagent's JSON lists gives me only 0 or 0.00 as values. e.g. for Firefox:

Edit2: With number format set to US-english it works, but not with using a non-US format (number separator ',' instead of '.').

...
{
"cpu":0,
"memory_mb":"0.00",
"kb_read":0,
"kb_write":0,
"name":"firefox"
}
...
> pidstat -ruht
#      Time   UID      TGID       TID    %usr %system  %guest    %CPU   CPU  minflt/s  majflt/s     VSZ     RSS   %MEM  Command
...
 1493588239  1000      3232         0    3,70    0,21    0,00    3,91     0    153,76      0,01 2792760  744472  23,90  firefox
 1493588239  1000         0      3232    3,05    0,12    0,00    3,17     0    131,16      0,01 2792760  744472  23,90  |__firefox
...

Edit: It might be because my Linux uses non-US regional format for numbers and dates (number separator ',' instead of '.')

from amonagent.

martinrusev avatar martinrusev commented on July 4, 2024

@codeisallaround Can you try with the precompiled ARM binary from releases: https://github.com/amonapp/amonagent/releases

I will take a look, I usually optimize for both separators - . and ,, because my Linux install also uses non-US regional format as well

from amonagent.

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.