newrelic

New Relic for Spring Boot

大城市里の小女人 提交于 2019-12-05 03:42:24
Recently, we convert a tomcat/spring app to spring boot. Everything is working fine apart from new relic. Is there a way I can easily config new relic with spring boot project. I don't want to hard code the location of new relic agent jar path, then run the spring boot project with the path. edit: Spring boot project is with maven You can include NewRelic Maven dependency and use maven-dependency-plugin to unpack in into your target/classes directory, which allows Maven to include it into final Jar file. Then you have to add Premain-Class attribute into manifest file and you can use your

NewRelic - How to Ignore part of a web application

*爱你&永不变心* 提交于 2019-12-05 00:02:17
I'd like to tell NewRelic to not monitor a subset of my web application. For example I'd like to exclude http://mysite/admin/ * so NewRelic won't count traffic against this portion of my app against my apdex. Something similar to how you can create filters in Google Analytics would be great. You can exclude a transaction from counting toward Apdex by calling IgnoreApdex in the New Relic .NET agent API . Add a reference to NewRelic.Agent.Api.dll in your project, then call that method in the code path common to your admin pages. You can also ignore a transaction entirely (no Apdex, no response

Copy a single dependency jar into a folder via build.sbt

一个人想着一个人 提交于 2019-12-04 17:04:44
During the stage task, I'd like sbt to grab the newrelic jar from the ivy repos and copy it into a folder. Ideally, the jar is configured the same way dependencies are, but not necessarily within the libraryDependencies Seq itself (as it's not a build or runtime dependency). You could declare a new configuration Stage . You could set libraryDependencies to the desired value in that configuration. Later your stage task could read update report and copy the files to the desired directory. val stage = taskKey[Unit]("Stage task") val Stage = config("stage") val root = project.in(file(".")).configs

How is “app server” time related to “browser time” and “transaction time” in newrelic?

亡梦爱人 提交于 2019-12-04 15:57:45
问题 I'm monitoring a PHP app with NewRelic, and I'm very confused about some of the numbers shown in the overview of my application. My app consists of a PHP webapp, that serves pages to web browsers on one side (obviously :), and performs requests to a Java backend on the other side: Browser <--> PHP Webapp --> Java Backend I know for a fact that some of the Java backend requests can take up to 15 seconds to complete, leading to the complete webapp from the point of view of the browser taking

Is there way to push NewRelic error manually?

老子叫甜甜 提交于 2019-12-04 15:17:29
问题 In our Rails app we rescue most of the exceptions on ApplicationController to give correct API response, but still want to track errors happening using ErrorCollector. Is there a way to manually send error to NewRelic? 回答1: Based on what I see in the New Relic agent code you can do NewRelic::Agent.notice_error(exception, options) I have tested this and have this running in my stack Here's an example in a controller: class ApplicationController < ActionController::Base rescue_from ActiveRecord

Mobile analytics for android library [closed]

一世执手 提交于 2019-12-04 13:34:42
Closed . This question is opinion-based. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . Closed 5 years ago . I am working on android library and wondering which analytics solution would be the best for this purpose. I want to monitor: unique app installations / removals using my library memory consumption, number of background applications while doing some specific operations in my library crashes / exceptions custom events All these statistics should be easily grouped

Slow action in Rails application: ActionDispatch::Routing::RouteSet#call

。_饼干妹妹 提交于 2019-12-04 13:25:03
问题 According to NewRelic the slowest transaction in my application is: Middleware/Rack/ActionDispatch::Routing::RouteSet#call It takes about 261 ms app server time. What is this RouteSet#call ? Rails routing mechanism? Is 261 ms a normal value? How to speed it up? 回答1: If by any chance you are using the "Treat" gem, remove it. Seems like a bug. https://github.com/louismullie/treat/issues/84 回答2: In my case, I was using rocket_pants . Its controllers don't inherit from ActionController::Base so

Unexpected SQL queries to Postgres database on Rails/Heroku

戏子无情 提交于 2019-12-04 10:42:25
问题 I was diving into a really long request to one of my Rails applications using NewRelic and found a number of SQL queries that appear entirely foreign that are taking up a significant length of time. I've Google'd around but I've come up empty handed as to what they are, let alone whether I can prevent them from occurring. SELECT COUNT(*) FROM pg_class c LEFT JOIN pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind in (?, ?) AND c.relname = ? AND n.nspname = ANY (current_schemas(false))

Looking to quantify the performance overhead of NewRelic monitoring in python django app

橙三吉。 提交于 2019-12-04 03:50:29
I am working on a large Django (v1.5.1) application that includes multiple application servers, MySQL servers etc. Before rolling out NewRelic onto all of the servers I want to have an idea of what kind of overhead I will incur per transaction. If possible I'd like to even distinguish between the application tracking and the server monitoring that would be ideal. Does anyone know of generally accepted numbers for this? Perhaps a site that is doing this sort of investigation or steps so that we can do the investigation on our own. For the Python agent and monitoring of a Django web application,

Performance Monitoring Openerp

早过忘川 提交于 2019-12-03 21:49:32
We are trying to implement new relic ( http://www.newrelic.com ) on a dev server to test openerp's performance . The below installation steps of newrelic asks us to to modify WSGI application file . I am new to openerp and I can't seem to figure this out. Any help will be highly appreciated. Within the same WSGI application file, you then need to add a wrapper around the actual WSGI application entry point. If the WSGI application entry point is a function declared in the file itself, then you can use a decorator. @newrelic.agent.wsgi_application() def application(environ, start_response): ...