"SELECT SUM(rx_bytes) FROM..." will return the sum across all the series.
"SELECT SUM(rx_bytes) FROM...GROUP BY container_name" will return the SUM independently for each container_name It sounds like you are trying to sum up the total network traffic at each interval. Assuming the data is reported in 10 second intervals, a query like "SELECT SUM(rx_bytes) FROM...GROUP BY time(10s)" would return that. There is no way in InfluxDB to do a query like "SELECT rx_bytes + rx_bytes..." where one field is from the centos container, and the other is from the ubuntu box. You'll have to sum across intervals, not individually for every point. On Thu, Aug 18, 2016 at 1:39 AM, 陈繁 <[email protected]> wrote: > for example: > > <https://lh3.googleusercontent.com/-AhsPrY9HfxU/V7Vk2l-k-BI/AAAAAAAAABs/TbTmyeO65qEGtB3xWfq2DUl6Bl9JpHP6wCLcB/s1600/net.png> > > > > > > > > > > > > > > > > > > > > > > > I have two container, so there are two values of rx_bytes.how to get the > sum of the different container on the same time? > > > > > > > > > > -- > Remember to include the InfluxDB version number with all issue reports > --- > You received this message because you are subscribed to the Google Groups > "InfluxDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/influxdb. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/influxdb/7f10f170-393d-44a4-a5ce-3f05c6004956%40googlegroups.com > <https://groups.google.com/d/msgid/influxdb/7f10f170-393d-44a4-a5ce-3f05c6004956%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Sean Beckett Director of Support and Professional Services InfluxDB -- Remember to include the InfluxDB version number with all issue reports --- You received this message because you are subscribed to the Google Groups "InfluxDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/CALGqCvOmEi0vwpWVo8nrc2bBizYcQdQHShZPPub2ACzKExdfNw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
