Forum Discussion

prolannic's avatar
prolannic
Icon for Neophyte rankNeophyte
2 months ago

complex Datapoint that shows max Value

Hi all

I'd like to create a complex Datapoint that shows the maximum value of a simple Datapoint of the last 24h.

Example: Simple datapoint x polls data every 2 min. I now want a complex datapoint that shows the max value of datapoint x from the last 24h. 

Is there a way to achieve this?

Regards

  • Below is the discussion I was having with some of the folks here while I was working on it.  The specific code was written while I was at my previous employer and that specific DataSource there is their Intellectual Property that I no longer have access to.  My RestAPI code is elsewhere around here that I produced while at the company before that and shared with their permission.  I specifically have a NOC Dashboard post and an ABCG post that use that function.

    Here's the discussion

  • You should be able to add a gauge widget to a dashboard with the "Show Peak" selected at 24 hours timeframe for it.

    Other option to turn that into a part of a datasource would be to have the DS call back to the RestAPI and grab the last 24 hours of metrics for that datapoint (in the case of 24 hours at 2 minute sample time... is a lot; you may run into timeouts frequently with that) and grab the highest value from that set.

  • Hi Cole_McDonald 

    Thanks for your reply.The gauge widget is unfortunatly not a solution, because we need to receive alerts.

    How would I configure such a datasource to call back to the RestAPI?

  • Sorry, I no longer have access to the specific methods I was using.  I do have to create a similar DS once I get my new employer outfitted with LM, but I'm not there yet and don't have much time to invest in that effort yet.  The first chunk of the NOC dashboard has the functions necessary to get at the historical data given the right URL sent to it.