Php Azure诊断程序未保存性能计数器

Php Azure诊断程序未保存性能计数器,php,azure,Php,Azure,我已在Azure PHP Web角色中启用了诊断功能。它似乎确实启用了,因为它正在创建两个表waddiagnosticinfraestrastructurelogstable和WADWindowsEventsLogTable,以及在blob容器wad控制容器中转储配置 但是它没有为我的diagnostics.wadcfg的另外两个部分(PerformanceCounters和Logs)创建表。我做错了什么 这是我的诊断。wadcfg: <DiagnosticMonitorConfigura

我已在Azure PHP Web角色中启用了诊断功能。它似乎确实启用了,因为它正在创建两个表
waddiagnosticinfraestrastructurelogstable
WADWindowsEventsLogTable
,以及在blob容器
wad控制容器中转储配置

但是它没有为我的
diagnostics.wadcfg
的另外两个部分(
PerformanceCounters
Logs
)创建表。我做错了什么

这是我的
诊断。wadcfg

<DiagnosticMonitorConfiguration xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration" configurationChangePollInterval="PT1M" overallQuotaInMB="4096">

    <DiagnosticInfrastructureLogs bufferQuotaInMB="1024" scheduledTransferLogLevelFilter="Verbose" scheduledTransferPeriod="PT1M" />

    <Logs bufferQuotaInMB="1024" scheduledTransferLogLevelFilter="Verbose" scheduledTransferPeriod="PT1M" />

    <WindowsEventLog bufferQuotaInMB="1024" scheduledTransferLogLevelFilter="Verbose" scheduledTransferPeriod="PT1M">
        <DataSource name="Application!*"/>
        <DataSource name="System!*"/>
    </WindowsEventLog>

    <PerformanceCounters bufferQuotaInMB="1024" scheduledTransferPeriod="PT2M">
        <PerformanceCounterConfiguration counterSpecifier="\Memory\Available MBytes" sampleRate="PT1M"/>
        <PerformanceCounterConfiguration counterSpecifier="\Processor(_Total)\% Processor Time" sampleRate="PT1M"/>
        <PerformanceCounterConfiguration counterSpecifier="\Network Interface(*)\Bytes Sent/sec" sampleRate="PT1M"/>
        <PerformanceCounterConfiguration counterSpecifier="\Network Interface(*)\Bytes Total/sec" sampleRate="PT1M"/>
    </PerformanceCounters>

</DiagnosticMonitorConfiguration>
在我的
服务定义.csdef
中:

<Imports>
    <Import moduleName="Diagnostics"/>
</Imports>

您的配置看起来不错


您是否给部署至少5-10分钟的时间来开始创建表并开始日志记录?

您说得对,配置还可以。事实证明,它只在DevFabric中失败了(我想我知道为什么:),它在云上起到了魅力的作用。
<ConfigurationSettings>
    <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="[myconnectionstring]"/>
    [...]
</ConfigurationSettings>
<Imports>
    <Import moduleName="Diagnostics"/>
</Imports>