I am new to Graphite/Grafana and setting up some graphs for the first time. I probably have a basic question but unfortunately I am not able to find the right solution anywhere on the net.
I have a counter that shows incremental value - say ‘Total bytes transmitted’. This is a counter so it always shows the incremental value until it reaches its max limit.
I send this data roughly every hour to Graphite and would like to plot a graph showing only the delta between the data points. Then I want to setup an alert such that if the delta between the two provided values is say > 10000 then trigger an alert.
I have tried using derivatives, NonNegativeDerivates and also perSecond function but it does not appear to be doing the delta properly. I also tried keepLastValue and with that atleast I get some bars but the bar does not represent the correct data.
Raw Data showing accumulated values:
Data with keepLast and perSecond functions:
alias(perSecond(keepLastValue(com.$Hostname.TotDLBytes, 1000)), ‘Total DL Bytes’)
Can anyone help with guiding me with the query/setup that I should look into in order to create a delta graph which I can use to set threshold alerts?