0

I want to add a system usage diagram to our CI build server for our management so they can see that we need to buy a larger build server when the time has come 😆

Should just save a png or svg image that occurred during last build.

Is there any simple program to do this? I don't want to add a whole prometheus/grafana pipeline setup to the build process.

6
  • Arguably you simply need monitoring with history retention. And you run that 24x7 independently of what your server is doing and when . Recording the load only during builds, when your load peaks is not really saying much. I wouldn’t give you a better server without also knowing how long your build takes and if that is slowing down, how many builds you do and how long you sit twiddling your thumbs waiting for a build to finish and other usage and performance metrics. – Bob Apr 7 at 10:30
  • That question has been asked before, with several suggestions. – berndbausch Apr 7 at 10:31
  • @HermanB of course i already have this metrics about build times, build configurations and build runs. I just need CPU load (and parallelism control as hint for unit test writers). And i want to save this with the CI report. – Lothar Apr 7 at 11:47
  • @berndbausch Thanks, i will look at Munin tonight, maybe you are right and it does exactly what i want. – Lothar Apr 7 at 11:49
  • 1
    You may find that sar is already running routinely (particularly on a RHEL-like distribution, not sure about Debian-like distributions). It doesn't have graphing capabilities, but it would be easy to include in CI reports. – Cameron Kerr Apr 7 at 12:42
1

As mentioned in to comments you can use sar which is part of sysstat package. To create graph from this data you can use ksar, RRDtool, sargraph and probably a lot of other software

0

You may find atop useful: https://www.atoptool.nl/netatop.php. When installed, it automatically collects historical data and provides basic reporting capabilities via atopsar.

I've also just found this tool which can be used to create graphs from atop metrics: https://github.com/aplsms/atop-graph

1
  • Thanks for the links. Unfortuantely after a short github browing i get the feeling that atop-graph is pulling in too much dependencies. – Lothar Apr 8 at 8:29
0

You can use a comprehensive monitoring tool like Netdata to gather realtime statistics.

https://www.netdata.cloud

Not the answer you're looking for? Browse other questions tagged or ask your own question.