tags are not valid for functions, including DISTINCT() and COUNT(). You can easily export the values to STDOUT or a text file using the -execute argument with the CLI, and then count however you prefer. It's not elegant but it is flexible.
https://docs.influxdata.com/influxdb/v0.13/tools/shell/#influx-arguments Follow https://github.com/influxdata/influxdb/issues/3760 for progress on the request. On Fri, Jul 8, 2016 at 7:42 AM, Olivier Arsac <[email protected]> wrote: > I can list all values from a given tag: > show tag values from cpu with key = "host" > But how can I count the number of values? (here it would be the number of > hosts) > Thank you. > > -- > 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/29974582-516e-451a-9072-348bc76a26f9%40googlegroups.com > <https://groups.google.com/d/msgid/influxdb/29974582-516e-451a-9072-348bc76a26f9%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/CALGqCvPjk3S2dWJGk8EgquJMkAhiPmCX62gk6%3DUuUZTcZpFjPQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
