I would like to put two series in the same graph on the graphite dashboard. However, since the dashboard requires single-line commands I could not find a way that doesn't involve the use of a wildcard.
Here's an example of the two series I would like in the same graph:
sum(base.foo.bar.positive.*)
sum(base.foo.bar.negative.*)
I tried several separators but I could not get it to work. Any ideas?
The SumSeries function is one of the most commonly used in Anodot. It provides the most straightforward way to sum a group of time-series, resulting in a single time-series.
To access Graphite settings, hover your mouse over the Configuration (gear) icon, then click Data Sources, and then click the Graphite data source. The data source name. This is how you refer to the data source in panels and queries. Default data source means that it will be pre-selected for new panels.
You have a few options here...
OR
Merge 2 or more wildcard matching
Use groupByNode() and wildcard matching
This is not as nice, and will not always work however you will be able to do this all in one line.
sumSeriesWithWildcards(base.foo.bar.{positive,negative}.*, 3)
This will do the following:
You might want to have a read over the following page: http://graphite.readthedocs.org/en/1.0/functions.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With