Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gzip post data before sending to New Relic #515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simonbp
Copy link

@simonbp simonbp commented Feb 2, 2017

The newrelic plugin agent was running, but New Relic was not showing any data. Upon investigation, I was seeing this in the debug log:
DEBUG 2017-02-02 11:23:39,688 17393 MainProcess MainThread newrelic_plugin_agent.agent send_components L233 : Response: 413: '{"error": "Request size is over 1 MiB limit"}'

I'm creating a lot of metrics with this plugin and New Relic has a hard limit of 1 MiB on POST data.

Gzipping the POST data with this patch took my POSTs from about 1.2 MB to 46 KB. New Relic is accepting and showing the metrics again.

Thanks for looking into this.

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

Successfully merging this pull request may close these issues.

1 participant