Search code examples
influxdb

How do I add 2 columns in influxdb?


I have series s1 (e.g. host 1) with 2 columns cA (e.g. memory used) and cB (e.g. another type of memory used), respectively.

How do I get a set of points which are the result of adding s1.cA and s1.cB.

I've looked at the influxdb documentation here http://influxdb.com/docs/v0.7/api/query_language.html but I couldn't understand their examples.

Thanks in advance.


Solution

  • You should be able to run select cA + cB from s1, below is a screenshot of running the query on some sample data:

    enter image description here