pencil icon indicating copy to clipboard operation
pencil copied to clipboard

Please add derivative example

Open omry opened this issue 13 years ago • 1 comments

I`m trying to build a CPU usage graph, and I can't figure out how to run derivative on the series. can you please improve the doc to include such an example, its by far the most commonly used function in graphite.

omry avatar Dec 27 '11 11:12 omry

I got this far, but for some reason the order of the stack is not what appears in the graph definition. any idea?

:graphs:
  cpu_usage:
    title: CPU Usage
    targets:
      system.cpu.iowait:
        !omap
        - :color: orange
        - :derivative:
        - :key: CPU/IO wait
      system.cpu.system:
        !omap
        - :color: red
        - :derivative:
        - :key: CPU/system
      system.cpu.user:
        !omap
        - :color: green
        - :derivative:
        - :key: CPU/user
      system.cpu.idle:
        !omap
        - :color: black
        - :derivative:
        - :key: CPU/idle
    areaMode: stacked
    hosts: ["*"]

omry avatar Dec 27 '11 14:12 omry