Created
November 15, 2017 09:09
-
-
Save dictvm/419ad2f443826784cfbcc2ff5766104e to your computer and use it in GitHub Desktop.
Count Series in InfluxDB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
influx -database '$DATABASE' -format 'csv' -execute 'SHOW SERIES' | grep -v "name,_id,host" | wc -l |
Thanks for this! It was really useful.
I think better way to give the database name (that worked for me) was:
select * from _internal.."database" where "database"='DATABASE_NAME' order by time desc limit 1
good
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
don't forget quote "database" since is reserved word and is used as measurement name and tag(column) name