-
Notifications
You must be signed in to change notification settings - Fork 22
Difficulty with initial configuration #2
Comments
Hello, I'm the user. I added extra log output to the libraries, and here is the log: https://gist.github.com/3277519 BTW, I may be mistaken, but shouldn't the request's Other information:
I'm not sure if these 310 measurements is too much for the trial account. |
The logs seem to indicate that auth headers arent being set. Are you instantiating the LibratoReporter using the enable method per the readme? Could you gist the code please? Blank out the token of course. I would expect a 401 rather than a timeout in that case, also.. |
Sure, updated here: https://gist.github.com/3277519#file_global.scala |
Not familiar with scala, unfortunately. What does flatMap return? What does the getOrElse method return? Can you log out the values of libratoUsername and libratoAPIKey and verify they are the correct values? Will scala error on a type mismatch? |
Those are fine. I use similar code for my other properties too. Just to be sure, I swapped out the actual text values. I also emailed Librato issues account a Wireshark dump. |
Example app added here: https://github.com/opyate/librato-play-example |
Please try version 2.1.2.4-SNAPSHOT from maven and report what happens. The auth header is now set explicitly, and there's a bit of error checking for the auth values. Thanks! |
Thanks, I now see a load of metric entries on the METRICS tab. I suppose my next step is to configure a custom dashboard with a selection of these metrics which mean most to me. Another word of warning: this happens with every upload:
The problem seem to be solved, though. BTW, I also had to apply the librato-java-0.0.6-SNAPSHOT solution as in issue 7 before I could get this to work. |
This plus using librato-java-0.0.6-SNAPSHOT solved the issues I was having that we discussed in the campfire chat room last Friday. Are you planning on versioning those soon? |
Absolutely. Need to look into why librato-java 0.0.6-SNAPSHOT would be required, and another report of tests failing in that version. Will try to do that and cut both libraries tonight. |
FYI, we've been running the snapshotted versions in production since this morning with no issues, so I'm feeling pretty good about them. |
I just released metrics-librato-2.1.2.4 which depends on the simultaneously released librato-java-0.0.6, fixing this issue, as well as a few others. Should be in maven central in a few hours. @opyate the timeout error is likely the result of large batches taking a while to post to Librato. The timeout is configurable, see It is safe to set that to a value just lower than what your posting interval is. |
Had a report from one of our users that initial configuration is confusing:
QUOTE
I'm using metrics-librato, but don't seem to be getting a response back from you, judging by the following log entry:
[error] c.l.m.LibratoBatch - Unable to post to Librato API
java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: No response received after 5
I have verified that my username and api key works by trying a GET from the command line using curl.
It's not clear from the documentation if there's anything else I need to do to make this work.
ENDQUOTE
The text was updated successfully, but these errors were encountered: