help with gnuplot query

43 views
Skip to first unread message

David Hysom

unread,
Dec 20, 2012, 3:53:08 PM12/20/12
to open...@googlegroups.com
Hi, I'm just getting started with openTSDB and have a problem with getting a files for gnuplot using query.
this works:
>./tsdb query 2012/12/19 2012/12/21 sum proc.loadavg.1m
proc.loadavg.1m 1356020000 0.100000 {host=thormaster}
proc.loadavg.1m 1356020001 0.101000 {host=thormaster}
...

But when I add options for gnuplot:
>./tsdb query --graph=/home/hysom 2012/12/19 2012/12/21 sum proc.loadavg.1m
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:547)
        at java.util.ArrayList.get(ArrayList.java:322)
        at net.opentsdb.tools.CliQuery.doQuery(CliQuery.java:157)
        at net.opentsdb.tools.CliQuery.main(CliQuery.java:113)

Thanks in advance to any who can tell me what I'm doing wrong!

ManOLamancha

unread,
Dec 20, 2012, 6:20:15 PM12/20/12
to open...@googlegroups.com
On Thursday, December 20, 2012 3:53:08 PM UTC-5, David Hysom wrote:
But when I add options for gnuplot:
>./tsdb query --graph=/home/hysom 2012/12/19 2012/12/21 sum proc.loadavg.1m
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:547)
        at java.util.ArrayList.get(ArrayList.java:322)
        at net.opentsdb.tools.CliQuery.doQuery(CliQuery.java:157)
        at net.opentsdb.tools.CliQuery.main(CliQuery.java:113)

I'll have to play around with the CLI a bit as I haven't used it, but can you generate a graph properly using the HTTP API and the same query? From the exception, it looks like a bug in the arguments handler.
Reply all
Reply to author
Forward
0 new messages