1

Is there any free library that allows me to effortlessly monitor metrics on my C++ application?

Something that would allow me to visualize e.g. transactions per second or runtime overhead in a 2D plot (the same way most monitoring tools plot e.g. CPU usage).

Similar to Graphite or Riemann but in a simple self-contained way. My dream would be something like:

// effortlessly create a dashboard object
Dashboard &d = DashboardBuilder();
// configure it to my liking
d.addMetric("CPU%", PLOT_OVER_TIME);
// show it in terminal, or web interface... as long as I can specify in a high-level
d.webInterface(8080);
// emit the events I need
d.emit("CPU%", getCPUPercentage());
  • 1
    welcome aboard. I hope that you get an answer to his, as it is very interesting question. Personally, I prefer my output as plain ascii text, so that I can manipulate it, although a GUJI over that would be great. What about number of threads at any given time, time spent in each thread, stack size ... ? – Mawg Sep 11 '18 at 7:58
  • Asking for simple library and then jumping into requiring it to have embedded web server? – VTT Nov 8 '18 at 7:58
  • Or some other user-friendly zero-configuration way of visualizing the data. Simple for the user :-) Ideally supporting many front-ends (webpage, CLI…) – João Neto Nov 8 '18 at 9:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.