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());