Ad Widget

Collapse

Calculate rate from count

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cyberoblivion
    Junior Member
    • Aug 2016
    • 2

    #1

    Calculate rate from count

    I need to calculate the rate per second of requests coming into a tomcat instance.

    I setup JMX bridge for zabbix and I am collecting "requestCount" which is an ever increasing number of requests processed. I would like to calculate the request rate by dividing the change in requestCount by the number of seconds elapsed since last time requestCount was collected.

    So something like this:
    change(requestCount) / (now - lastTimeCollected)

    Is there a way to know the last clocktime an item was collected?
  • peatb
    Zabbix Certified Trainer
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Aug 2016
    • 36

    #2
    There's a very easy way to fix this. In your item look for the option called 'store value as' and choose 'delta (speed per second)' instead of 'as is' and you're done.

    Comment

    • cyberoblivion
      Junior Member
      • Aug 2016
      • 2

      #3
      I figured there had to be! Thanks!

      Comment

      Working...