Created
May 9, 2014 19:31
-
-
Save jdowning/710afbe6092cec2c6917 to your computer and use it in GitHub Desktop.
InfluxDB 'list series' function
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
| list-series () { | |
| curl -s "localhost:8086/db/statsd/series?u=root&p=root&q=list+series" | python -mjson.tool | awk "/${1}/ {print \$2}" | sed -E 's/(\"|,)//g' | sort | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment