Page 1 of 1

Dynamic Graphs

Posted: Fri Nov 23, 2018 5:31 am
by optionstechnology
Many of our checks require dynamic graphing where the actual names of the entries may change over time

For example a check which charts the top ten processes by memory usage

The problem is when we run this currently the initial top ten are added to the graph, but if one of those processes drops out of the top ten and is replaced by another, the graph is unable to update to the new name

Is there a way around this? Has anyone ever setup something similar?

Re: Dynamic Graphs

Posted: Mon Nov 26, 2018 3:07 pm
by cdienger
If you're simply trying plot the memory usage of the top ten processes and don't care necessarily about the names, then this should be doable.

I used a test script like the following:

Code: Select all

#!/bin/bash

echo "test. | 'process_x'=1;;;; 'process_y'=5;;;;"

exit 0
changing the labels 'process_x' and 'process_y' will update the graph labels accordingly however the historical data will point to data associated with the old label(process).

If the historical data must point to the old process name, then I'm afraid I'm not aware of any work around to this.