gevent


NewRelic doesn't graph any data in a Python + Gevent based system


I have a Gevent based backend, where in a set of external apis are called in parallel. NewRelic doesn't report the time consumed by these apis in its UI.
I tried to push these timings myself using custom metrics. Here is the code snippet:
import time
t1 = time.time()
instance.getAval()
newrelic.agent.record_custom_metric("Custom/BUS_EXT_CALL", time.time() - t1)
This didn't work either. I tried to look into their python agent code and made following changes:
def record_custom_metric(name, value, application=None, app_name=None):
if app_name is None and application is None:
transaction = current_transaction()
if transaction:
transaction.record_custom_metric(name, value)
elif app_name is not None:
application = newrelic.api.application.application_instance(app_name)
application.record_custom_metric(name, value)
else:
if application.enabled:
application.record_custom_metric(name, value)
and now newrelic.agent.record_custom_metric("Custom/BUS_EXT_CALL", time.time() - t1, app_name="ControllerTest") this call was successful, but somehow the data doesn't appear in NewRelic's dashboard.

Related Links

building gevent in raspberry pi qemu
Some confusion about gevent (cffi) setup
Do rdflib and gevent work nicely together?
Replace gevent.spawn_link_exception
thread exception occurred in gevent
Is join required on gevent gthreads?
ZeroRPC heartbeats and timeouts
NewRelic doesn't graph any data in a Python + Gevent based system
Is there any way to run gevent-socketio 0.3.5-rc2 with gunicorn 18.0 without downgrading
How can I test to see whether gevent monkey patching is active?
How does gevent interact with threading.local data?
werkzeug server failed to handle request
Running time puzzle about gevent
Why does this http streaming not work as expected?

Categories

HOME
actionscript-3
youtube-api
optimization
sql-server-2014
fortran
glsl
assign
symfony-3.2
osx-yosemite
yacc
box-api
software-collections
angular-universal
facebook-sharer
xmlhttprequest
derby
android-notifications
background-image
inline-assembly
quality-center
deployment-descriptor
tftp
mex
2checkout
xlib
boost-log
language-detection
kubectl
rtos
javax
odp.net
nscollectionview
sknode
glide-image-library
test-kitchen
bootstrap-carousel
react.rb
nao-robot
openxava
jcs
intermediate-language
boost-regex
kendo-scheduler
typewriter
selection-sort
totalview
timex
suitesparse
cardview
magick.net
hoare-logic
android-xmlpullparser
shtml
python-rq
methodology
markerspiderfier
google-app-engine-php
web-performance
dynamics-nav
recode
database-project
php-gd
transport
notice
cloud-storage
nmock
transparentproxy
stderr
dockerpy
crtdbg.h
lwuit
visual-c#-express-2010
mixradio
xtify
pechkin
kademlia
msbuild-task
ntdll
linqdatasource
mail-gem
sup
bash4
reflexil
mvcmailer
mysql-connector
joomla1.7
recess
llblgen
datarelation
linq-to-mysql
mysql-pconnect
helios
data-formats
opengl-to-opengles
cross-cutting-concerns
scalable

Resources

Encrypt Message