Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Tag based logging is on by default #63

Closed
icha024 opened this issue Feb 27, 2017 · 6 comments
Closed

Tag based logging is on by default #63

icha024 opened this issue Feb 27, 2017 · 6 comments

Comments

@icha024
Copy link

icha024 commented Feb 27, 2017

Tag based logging is seem to be on by default in this library, but it didn't seem to be on by default in Librato. I'm currently seeing this error with the latest client and have to install the older version of this library to bypass this:

27 Feb 14:38:56 - LOG_ERR: Failed to post to Librato: HTTP 403: {"errors":["Tag based measurements are not enabled for this account. Contact [email protected] for more information"]}```
@bryanmikaelian
Copy link
Contributor

bryanmikaelian commented Feb 27, 2017

Hey @icha024! Thanks for bringing this up. As you said, this functionality is enabled by default but we forgot to make that clear in our README. #64 takes care of that.

In the meantime, there is an undocumented config flag writeToLegacy that you can use to enable the old way of submitting things to Librato. Once you are ready to start using tags, feel free to reach out to our support team!

@icha024
Copy link
Author

icha024 commented Feb 27, 2017

@bryanmikaelian Thanks for the quick response.

I've reverted my code to using the latest v2.0.2 version and:

  • Added writeToLegacy flag set to "true" in under librato config
  • Manually edited node_modules/statsd-librato-backend/lib/librato.js to make sure it is set to true

I'm still seeing the error with tag based measurement in the console log when sending a test message echo -n "test.ian:2634|g" | nc -w 1 -u 127.0.0.1 8127

@bryanmikaelian
Copy link
Contributor

@icha024 Is your data showing up in Librato with writeToLegacy enabled?

As of right now, there is no way to suppress the error message since 2.x.x+ assumes tags are enabled for your account. You can downgrade to this branch if the logged errors is causing issues.

@icha024
Copy link
Author

icha024 commented Mar 1, 2017

@bryanmikaelian The data isn't showing up on Librato with writeToLegacy: "true" enabled. Also, the error logged seem to be repeating/retying itself every 10 seconds.

Sounds like we'll need to use the older branch for now until we get the tag enabled to try out the new clients.

@icha024
Copy link
Author

icha024 commented Mar 2, 2017

Closing issue - Readme was updated and I got a solution :)

@icha024 icha024 closed this as completed Mar 2, 2017
@bryanmikaelian
Copy link
Contributor

Awesome. Glad you were able to figure out a solution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants