Ad Widget

Collapse

Drawing Average line on graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markfree
    Senior Member
    • Apr 2019
    • 868

    #1

    Drawing Average line on graphs

    (Using Zabbix 5.0.7)

    I created a widget with "Graph" type and wanted to see an average line on it acording to the Dashboard period selector.

    As an example, the Graph bellow collects a performance mesure every 5m, but it shows not average.
    Graph with no avg line

    By using a "Classic Graph" type I'm able to see the average according to the selected period but I can't draw an average line on it.
    Classic graph with no avg line

    I was hoping to draw an average line but could not find that option with "Graph" type.

    To remediate that behavior I created another item that calculates the average of the last 5 collected values and added it to the graph as shown bellow.
    Code:
        avg("net.tcp.service.perf[https,,{$HTTPS.STATUS.PORT}]",25m)
    Graph with item avg

    Is there a better way to include an average line on a Graph?
    Thanks
    Attached Files
    Last edited by markfree; 30-12-2020, 23:25.
  • markfree
    Senior Member
    • Apr 2019
    • 868

    #2
    I realized another way to draw the average line on a graph.
    We can use the aggregate function of the Graph widget pointing to the same item.

    This way there's no need for another calculated item.

    It actually works pretty good.


    graph with avg function
    Cheers

    Comment

    Working...