New on his blog today Maarten Balliauw has a post talking about running Azure diagnostics from inside of PHP (using the Windows Azure Diagnostics API).
When working with PHP on Windows Azure, chances are you may want to have a look at what's going on: log files, crash dumps, performance counters, … All this is valuable information when investigating application issues or doing performance tuning. Windows Azure is slightly different in diagnostics from a regular web application. [...] On Windows Azure, you may scale beyond that and have a hard time looking into what is happening in your application if you would have to use the above approach. A solution for this? Meet the Diagnostics Monitor.
He includes a sample configuration and an example of the output of his sample script when it's run against that configuration. You can find this script here and the Windows Azure SDK here.