Ad Widget

Collapse

Lines in stacked graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cpicton
    Member
    • Nov 2006
    • 35

    #1

    Lines in stacked graphs

    Hi

    I am trying to replicate a custom graph I previous created for monitoring (using rrdtool) with a zabbix graph.

    It is a stacked graph with some lines through it

    It currently looks like (from top to bottom)


    swapTotal (bold line)
    swapUsed-swapCached(area stacked above swapCached)
    swapCached (area stacked above totalMem)
    totalMem (bold line)
    cacheMem (area stacked above bufferMem)
    bufferMem (area stacked above usedMem)
    usedMem (area)

    And then Committed_AS which is a line going through all of those.


    Is this possible with Zabbix 1.4? I know the data is in the DB, it is just getting it into a graph that is the problem.
  • cpicton
    Member
    • Nov 2006
    • 35

    #2
    It seems that this is not possible, but I was thinking about it, and the following logic for creating graphs would probably be flexible enough:

    Instead of having two graph types (normal and stacked), a single graph type (based on 'normal') would be enough.

    Add in an extra option to the graph New Item screen:

    Position: (a combobox containing either 'Absolute' or 'Stacked')

    If Stacked is selected, add a combobox of current graph elements, so we can select which element it is stacked over.

    This will be flexible enough to create highly complex graphs, and will remove the need for the y sort order, as the sort order will be defined by the stack order of the elements.

    As an aside, currently the y axis can be fixed or calculated. There have been times I want the lower bound to be fixed (as in set it to 0), but need the upper bound to be calculated. Having this would also help.

    Comment

    • Lovespider
      Member
      • Sep 2004
      • 99

      #3
      I definitely agree. I'm also trying to stack some network protocols having a line showing the top Inbound/Outbound traffic.

      Comment

      • nicolasgoudard
        Junior Member
        • Mar 2021
        • 27

        #4
        UP, I manage a compute cluster for scientist. Previously we used Ganglia but this software doesn't work anymore (not updated). So I use zabbix : I would like to display a single line in a stacked graph, precisely on the attached picture memory usage graph: I would like to add a red line for the total memory (same it can be done with ganglia ) ; but I understood that we could not do it in Zabbix, unless you have an idea to do it inside Zabbix graph (but I dont want do it with grafana). I think I can do it it with a trigger like the attached picture of the CPU usage graph : this one is included in a zabbix template: you can see the trigger line on the CPU limit. But unfortunately by consulting the documentation and the CPU trigger already present in Zabbix, I don't understand how to attach a trigger to a graph via an item: I created a trigger of the total memory (total memory types> total memory) and checked "show triggers" in the graph configuration ; but it is not enough : the graph does not display the trigger as you can see in the attached picture. Can you help me ? thanks in advance
        Attached Files

        Comment

        Working...