Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>UPDATE</strong></p> <p>Do take a look at the following blog post: <a href="http://blog.maartenballiauw.be/post/2010/09/23/Windows-Azure-Diagnostics-in-PHP.aspx" rel="nofollow">http://blog.maartenballiauw.be/post/2010/09/23/Windows-Azure-Diagnostics-in-PHP.aspx</a>. I realize that it's an old post but I think this should give you some idea about implementing diagnostics in your role running PHP. The blog post makes use of PHP SDK for Windows Azure on CodePlex which I think is quite old and has been retired in favor of the new SDK on Github but I think the SDK code on Github doesn't have diagnostics implemented (and that's a shame). </p> <p><strong>ORIGINAL RESPONSE</strong></p> <p>Since performance counters data is stored in Windows Azure Table Storage, you could simply use <code>Windows Azure SDK for PHP</code> to query <strong><code>WADPerformanceCountersTable</code></strong> in your storage account to fetch this data. </p> <p>I have written a blog post about efficiently fetching diagnostics data sometime back which you can read here: <a href="http://gauravmantri.com/2012/02/17/effective-way-of-fetching-diagnostics-data-from-windows-azure-diagnostics-table-hint-use-partitionkey/" rel="nofollow">http://gauravmantri.com/2012/02/17/effective-way-of-fetching-diagnostics-data-from-windows-azure-diagnostics-table-hint-use-partitionkey/</a>.</p> <p><strong>Update</strong></p> <p>Looking at your code above and source code for <a href="https://github.com/WindowsAzure/azure-sdk-for-php/blob/master/WindowsAzure/Table/TableRestProxy.php" rel="nofollow"><code>TableRestProxy.php</code></a>, you could include a query as the 2nd parameter to your <code>retrieveEntities</code> call. You could something like:</p> <pre><code>$query = "(CounterName eq '\Processor(_Total)\% Processor Time` or CounterName eq '\TCPv4\Connections Established') $metrics = $table-&gt;retrieveEntities('WADPerformanceCountersTable', $query); </code></pre> <p>Please note that my knowledge about PHP is limited to none so the code above may not work. Also, please ensure to include <code>PartitionKey</code> in your query to avoid full table scan.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload