Ad Widget

Collapse

Zabbix rate() function introduces massive spikes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ksoviero
    Junior Member
    • Jun 2025
    • 5

    #1

    Zabbix rate() function introduces massive spikes

    I have two metrics, one is the running total of data used on a piece of networking equipment, and the other is a rate() derived from that total usage. For some reason, the rate() will randomly return massive spikes up into the 200+ Gbps range when the underlying data barely changed.
    For example, here is the underlying data for a sample time range when the error occured:
    Click image for larger version

Name:	image.png
Views:	108
Size:	40.1 KB
ID:	504574And here is the spike from the exact same time range:
    Click image for larger version

Name:	image.png
Views:	87
Size:	37.4 KB
ID:	504575And here are the relevant configs for each of the metrics as well.
    Click image for larger version

Name:	image.png
Views:	88
Size:	45.2 KB
ID:	504577
    Click image for larger version

Name:	image.png
Views:	86
Size:	27.5 KB
ID:	504576
    ​​
    Anyone know what could be causing these massive spikes? The only thing I can think of is the interplay between the check interval (10s) and the window the rate() function is using (20s), but I don't know enough about the underlying rate() function to be sure, or to know how to resolve it.

    Thanks!
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Your data usage (the upper graph) has a negative change. How is that possible?

    Related to that, the rate item is an unsigned integer, so it cannot show a negative change rate. Maybe the value then rolls over to "max int" or something like that.

    Markku

    Comment

    Working...