I have a rather obscure question, which I’ll probably get shot down for asking, but here goes.
I have just implemented New Relic web application monitoring for my site which is made up of roughly 70% legacy Perl code and 30% newer PHP code. New Relic gives some really nice information for slow SQL which I’d like to be able to analyse.
The problem is that New Relic does not provide Perl support, so I can only see 30% of my applications query statistics.
As a workaround, I had a pretty insane idea whereby I could potentially prepare my SQL in Perl as normal, then exec/shell out to a PHP script which executes the SQL using its built-in interface, then return the results back to perl somehow. (I have no idea if this is even possible). This way, I’d be able to see the other 70% of SQL statistics that I am currently unable to see.
I’ve heard about the PECL Perl extension but have yet to look into it in any detail. Does anyone know if/how I could accomplish something like this? Or suggest any alternative Perl/SQL monitoring tools I could use alongside new relic?
Regards,
ns
Thanks for your pointers.
I was blue-sky thinking when I asked this question. I have since realised that performance is likely to take a big hit, and it is an ugly solution to implement. I will instead try working with alternative tools alongside new relic.
Cheers! ns