OZ1SEJ
OZ1SEJ

Reputation: 417

Influxdb query on tag returns nothing

I have an Influxdb with lots of fields and a single tag:

> show tag keys
name: rtl433
tagKey
------
model

Now, I want a list of all possible values for model, so I run

SELECT model FROM rtl433
>

-and it returns nothing. Why? There's lots of data in model if I select *.

Upvotes: 0

Views: 507

Answers (1)

Jan Garaj
Jan Garaj

Reputation: 28716

You are trying to use classic SQL solution, but InfluxDB is not classic SQL DB. You should check InfluxDB doc and you will find solution:

SHOW TAG VALUES WITH KEY = "model"

Upvotes: 1

Related Questions