newrelic

Breaking gzipped JSON into chunks of arbitrary size

只谈情不闲聊 提交于 2021-01-29 18:25:36
问题 This is being done in Typescript, but the algorithm is applicable to any language, I think. I am sending log data (parsed AWS ALB logs) to New Relic, and their maximum payload size is 10^6 bytes. What I'm doing right now is encoding the entire ALB log I get from S3 in JSON, gzipping it, and then examining the size via Buffer.byteLength . If it's in excess of 900,000 bytes (I want to leave some headroom, because the gzipped data doesn't exactly scale linearly with the number of log entries) I

Client timeout exceeded while awaiting headers

こ雲淡風輕ζ 提交于 2021-01-27 06:06:53
问题 I got below error, I am using go v1.10.4 linux/amd64. I am not behind any firewall or whatsoever. New Relic in java server (same network segment) that we have runs fine. We have tried: Increasing the timeout to 60 seconds Use http2 in the server Using Postman return 503 with response: {"exception":{"message":"Server Error","error_type":"RuntimeError"}} troubleshooting with ./nrdiag says “No Issues Found” Below is our code: config := newrelic.NewConfig(os.Getenv("NEW_RELIC_APP_NAME"), os

How to make a curl request with json in jenkins pipeline groovy script

最后都变了- 提交于 2020-12-29 05:52:42
问题 I am trying to make a New Relic deployment API call as a Jenkins build step using the Groovy pipeline. I'm having trouble because of the use of both single and double quotes within the shell ('sh') command on the groovy script. Whenever I execute the following: node { //... def json = '''\ {"deployment": {"revision": "v1","user": "me"}}' ''' sh "curl -o /dev/null -s -X POST 'https://api.newrelic.com/v2/applications/[redacted]/deployments.json' \ -H 'X-Api-Key:[redacted]' \ -H 'Content-Type:

How to make a curl request with json in jenkins pipeline groovy script

╄→尐↘猪︶ㄣ 提交于 2020-12-29 05:52:36
问题 I am trying to make a New Relic deployment API call as a Jenkins build step using the Groovy pipeline. I'm having trouble because of the use of both single and double quotes within the shell ('sh') command on the groovy script. Whenever I execute the following: node { //... def json = '''\ {"deployment": {"revision": "v1","user": "me"}}' ''' sh "curl -o /dev/null -s -X POST 'https://api.newrelic.com/v2/applications/[redacted]/deployments.json' \ -H 'X-Api-Key:[redacted]' \ -H 'Content-Type:

How to make a curl request with json in jenkins pipeline groovy script

限于喜欢 提交于 2020-12-29 05:52:15
问题 I am trying to make a New Relic deployment API call as a Jenkins build step using the Groovy pipeline. I'm having trouble because of the use of both single and double quotes within the shell ('sh') command on the groovy script. Whenever I execute the following: node { //... def json = '''\ {"deployment": {"revision": "v1","user": "me"}}' ''' sh "curl -o /dev/null -s -X POST 'https://api.newrelic.com/v2/applications/[redacted]/deployments.json' \ -H 'X-Api-Key:[redacted]' \ -H 'Content-Type:

Number of objects cached in production using EhCache

僤鯓⒐⒋嵵緔 提交于 2020-12-13 03:23:05
问题 Is there any way to know the number of objects cached in production? I am using EhCache on my project and NewRelic for monitoring. I don't know if that help me too or if there is integration for NewRelic with EhCache. 回答1: You could potentially use NewRelic's JMX integration, but also there is JCache API integration in NewRelic, which may instrument the right parts if you are using the JCache compatible features of EhCache. If you want to export select JMX information, then you need to

Annotating an annonymus middleware in Newrelic in a NestJS app

江枫思渺然 提交于 2020-12-12 05:32:55
问题 I'm using NestJS (with Express Server) for a project and trying to optimize the performance on some of the endpoints, using New Relic I noticed that a big chunk of the response time of all endpoints is spent in an anonymous middleware, reaching 89% at some points. Is there a way to find out which middleware is this? 来源: https://stackoverflow.com/questions/63778644/annotating-an-annonymus-middleware-in-newrelic-in-a-nestjs-app

Python agent newrelic installation

走远了吗. 提交于 2020-02-07 07:46:08
问题 im trying to install python agent of newrelic on my webapp but i just cant. im using a file named code.py to start my app. I add at the begging: import newrelic.agent newrelic.agent.initialize('newrelic.ini') and i also tryed: import newrelic.agent newrelic.agent.initialize('/root/web/newrelic.ini') but i get some error like Traceback (most recent call last): File "code.py", line 2, in <module> import newrelic.agent File "/usr/local/lib/python2.7/dist-packages/newrelic- 2.44.0.36/newrelic

Python agent newrelic installation

蓝咒 提交于 2020-02-07 07:45:11
问题 im trying to install python agent of newrelic on my webapp but i just cant. im using a file named code.py to start my app. I add at the begging: import newrelic.agent newrelic.agent.initialize('newrelic.ini') and i also tryed: import newrelic.agent newrelic.agent.initialize('/root/web/newrelic.ini') but i get some error like Traceback (most recent call last): File "code.py", line 2, in <module> import newrelic.agent File "/usr/local/lib/python2.7/dist-packages/newrelic- 2.44.0.36/newrelic