Ad Widget

Collapse

Is it possible to count the amount of entries per filtered time?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • high-t
    Member
    • Dec 2014
    • 68

    #1

    Is it possible to count the amount of entries per filtered time?

    I have an item to register each code run timestamp.
    Is it possible to count the amount of item entries per filtered time? So, for example, in the attached picture here, the desired count will show the value of 4 ?
    Click image for larger version

Name:	Screenshot 2021-05-12 211520.png
Views:	532
Size:	164.1 KB
ID:	424538

    Thank you.

    Attached Files
  • high-t
    Member
    • Dec 2014
    • 68

    #2
    Originally posted by splitek
    https://www.zabbix.com/documentation...gers/functions

    count (sec|#num,<pattern>,<operator>,<time_shift>) Number of values within the defined evaluation period.
    Thank you for the reply.
    Yes, I am aware of the COUNT function, but it requires a fixed time period setting, while I'm looking for a way to calculate that value within the filtered time period, much like the value automatically displayed by Zabbix, as shown in the screenshot here:

    Click image for larger version  Name:	Screenshot 2021-05-13 093144.png Views:	0 Size:	170.0 KB ID:	424553

    Comment

    • high-t
      Member
      • Dec 2014
      • 68

      #3
      Originally posted by splitek
      What you mean by "requires a fixed time period setting"? You can use parameter "sec" for length of time period, and move this time window as you wish with "timeshift".

      Or you want to have auto changes in triggers definition that happen when you change time in the screen above? There is no such feature.
      I'm really struggling with this one, and will appreciate your help...
      So, I tried following your advise, and added a calculated item with the following formula:
      Code:
      count("myhost:myfunc.duration",1d)
      It works, but it returns the count of values within the last 24 hours. I wish to get the count of values within the timeframe filtered by the user.

      Is this even possible?
      Last edited by high-t; 13-05-2021, 10:38.

      Comment

      • high-t
        Member
        • Dec 2014
        • 68

        #4
        Thank you, splitek . I wasn't actually looking for visualization, but rather displaying a value. However, in the absence such an option, a visualization approach could also deliver the information, and I'll check that option now. Appreciate your help .

        Comment

        Working...