Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

cyanite master == graphite-api ref ? #117

Closed
danielsand opened this issue Jul 31, 2015 · 6 comments
Closed

cyanite master == graphite-api ref ? #117

danielsand opened this issue Jul 31, 2015 · 6 comments
Assignees
Labels

Comments

@danielsand
Copy link

Hello Again @pyr,

i have some Questions again :)

i have now a complete setup running.

Cassandra 2.1
2 cyanite servers:
one with the exoscale packages
one with the current master compiled jar

if i use the packages from the exoscale repo and install graphite-api - all works like a charm.

but it looks like the deb packages are quiet old and when i put stress on cyanite - a lot of metrics get lost.
so i compiled a recent master version of cyanite and got it running.
Metrics get in and i try now to connect graphite-api to it.

when i try to query the metrics - 500 errors occur.

do you have a different graphite-api version chained to this ?
a git ref in the graphite-api or cyanite python module would be awesome :)

@danielsand
Copy link
Author

maybe this helps - this is from the cyanite master compiled log:

DEBUG [2015-07-31 14:54:37,924] qtp2009637903-41 - org.eclipse.jetty.io.ChannelEndPoint filled -1 SelectChannelEndPoint@4aee2030{/10.0.1.56:35887<->8080,Open,in,out,-,-,7/200000,HttpConnection}{io=0/0,kio=0,kro=1}
DEBUG [2015-07-31 14:54:37,924] qtp2009637903-41 - org.eclipse.jetty.io.ChannelEndPoint ishut SelectChannelEndPoint@4aee2030{/10.0.1.56:35887<->8080,Open,in,out,-,-,7/200000,HttpConnection}{io=0/0,kio=0,kro=1}
DEBUG [2015-07-31 14:54:37,924] qtp2009637903-41 - org.eclipse.jetty.http.HttpParser atEOF HttpParser{s=START,0 of -1}
DEBUG [2015-07-31 14:54:37,924] qtp2009637903-41 - org.eclipse.jetty.server.HttpConnection HttpConnection@38373381<--HeapByteBuffer@10504946[p=0,l=0,c=8192,r=0]={<<<>>>HTTP/1.1 200 OK\r\n...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0
0\x00\x00\x00} filled -1
DEBUG [2015-07-31 14:54:37,924] qtp2009637903-41 - org.eclipse.jetty.server.HttpConnection HttpConnection@38373381<--HeapByteBuffer@10504946[p=0,l=0,c=8192,r=0]={<<<>>>HTTP/1.1 200 OK\r\n...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0
0\x00\x00\x00} parse HeapByteBuffer@10504946[p=0,l=0,c=8192,r=0]={<<<>>>HTTP/1.1 200 OK\r\n...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00} {}
DEBUG [2015-07-31 14:54:37,924] qtp2009637903-41 - org.eclipse.jetty.http.HttpParser parseNext s=START HeapByteBuffer@10504946[p=0,l=0,c=8192,r=0]={<<<>>>HTTP/1.1 200 OK\r\n...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}
DEBUG [2015-07-31 14:54:37,924] qtp2009637903-41 - org.eclipse.jetty.http.HttpParser START --> CLOSED

@pyr pyr self-assigned this Jul 31, 2015
@pyr pyr added the question label Jul 31, 2015
@pyr
Copy link
Owner

pyr commented Jul 31, 2015

@danielsand I'll test the whole scenario again throughout the weekend and will adapt graphite-cyanite if necessary

@danielsand
Copy link
Author

@pyr thanks for the effort.
cheers

@mkrb
Copy link

mkrb commented Jul 31, 2015

@pyr same for me, e.g

http://127.0.0.1/metrics/find/?_dc=1438359955641&query=*&format=treejson&path=&node=GraphiteTree

Response:

Graphite encountered an unexpected error while handling your request.
Please contact your site administrator if the problem persists.

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "/opt/graphite/webapp/graphite/metrics/views.py", line 128, in find_view
matches = list( STORE.find(query, fromTime, untilTime, local=local_only) )
File "/opt/graphite/webapp/graphite/storage.py", line 47, in find
for node in finder.find_nodes(query):
File "/usr/local/lib/python2.7/dist-packages/cyanite.py", line 104, in find_nodes
if path['leaf']:
TypeError: string indices must be integers

Have not found the 'leaf' in elasticsearch index....

@pyr
Copy link
Owner

pyr commented Aug 3, 2015

@mrkb thanks, this is really helpful. I will push a fix later today.

@pyr
Copy link
Owner

pyr commented Aug 5, 2015

duplicate of #119. Fix should come around quick now, sorry about the wait.

@pyr pyr closed this as completed Aug 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants