Graphite: several series with one team

I would like to put two series in the same graph on a graphite panel. However, since the dashboard requires single-line commands, I could not find a way that does not imply the use of a wildcard.

Here is an example of two series that I would like on the same chart:

sum(base.foo.bar.positive.*) sum(base.foo.bar.negative.*) 

I tried several delimiters, but I could not get it to work. Any ideas?

+8
graphite
source share
1 answer

You have several options here ...

  • Combine 2 graphs on a graph using drag and drop on the control panel

OR

Combine 2 or more wildcards

  1. Open your first chart in the control panel
  2. Open the second chart in the same control panel.
  3. Click and hold the second chart and drag it along the first chart

Use groupByNode () and wildcard

This is not so good and will not always work, but you can do it on one line.

 sumSeriesWithWildcards(base.foo.bar.{positive,negative}.*, 3) 

This will do the following:

  • Select all all charts that match base.foo.bar.positive. * and base.foo.bar.negative. *
  • Summarize data with node at position 3: positive, negative

You might want to read the following page: http://graphite.readthedocs.org/en/1.0/functions.html

+17
source share

All Articles