Azure PHP Web ロールで診断を有効にしました。WADDiagnosticInfraestructureLogsTable
2 つのテーブルとを作成WADWindowsEventsLogTable
し、構成を BLOB コンテナーにダンプしているため、実際に有効になっているようwad-control-container
です。
PerformanceCounters
しかし、 my の他の 2 つのセクション (およびLogs
) のテーブルは作成されませんdiagnostics.wadcfg
。私は何を間違っていますか?
これは私のdiagnostics.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>
これは、Azure Diagnostics が BLOB ストレージにダンプする構成ファイルです。
<?xml version="1.0"?>
<ConfigRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DataSources>
<OverallQuotaInMB>4096</OverallQuotaInMB>
<Logs>
<BufferQuotaInMB>1024</BufferQuotaInMB>
<ScheduledTransferPeriodInMinutes>1</ScheduledTransferPeriodInMinutes>
<ScheduledTransferLogLevelFilter>Verbose</ScheduledTransferLogLevelFilter>
</Logs>
<DiagnosticInfrastructureLogs>
<BufferQuotaInMB>1024</BufferQuotaInMB>
<ScheduledTransferPeriodInMinutes>1</ScheduledTransferPeriodInMinutes>
<ScheduledTransferLogLevelFilter>Verbose</ScheduledTransferLogLevelFilter>
</DiagnosticInfrastructureLogs>
<PerformanceCounters>
<BufferQuotaInMB>1024</BufferQuotaInMB>
<ScheduledTransferPeriodInMinutes>2</ScheduledTransferPeriodInMinutes>
<Subscriptions>
<PerformanceCounterConfiguration>
<CounterSpecifier>\Memory\Available MBytes</CounterSpecifier>
<SampleRateInSeconds>60</SampleRateInSeconds>
</PerformanceCounterConfiguration>
<PerformanceCounterConfiguration>
<CounterSpecifier>\Processor(_Total)\% Processor Time</CounterSpecifier>
<SampleRateInSeconds>60</SampleRateInSeconds>
</PerformanceCounterConfiguration>
<PerformanceCounterConfiguration>
<CounterSpecifier>\Network Interface(*)\Bytes Sent/sec</CounterSpecifier>
<SampleRateInSeconds>60</SampleRateInSeconds>
</PerformanceCounterConfiguration>
<PerformanceCounterConfiguration>
<CounterSpecifier>\Network Interface(*)\Bytes Total/sec</CounterSpecifier>
<SampleRateInSeconds>60</SampleRateInSeconds>
</PerformanceCounterConfiguration>
</Subscriptions>
</PerformanceCounters>
<WindowsEventLog>
<BufferQuotaInMB>1024</BufferQuotaInMB>
<ScheduledTransferPeriodInMinutes>1</ScheduledTransferPeriodInMinutes>
<Subscriptions>
<string>Application!*</string>
<string>System!*</string>
</Subscriptions>
<ScheduledTransferLogLevelFilter>Verbose</ScheduledTransferLogLevelFilter>
</WindowsEventLog>
<Directories>
<BufferQuotaInMB>0</BufferQuotaInMB>
<ScheduledTransferPeriodInMinutes>0</ScheduledTransferPeriodInMinutes>
<Subscriptions />
</Directories>
</DataSources>
<IsDefault>true</IsDefault>
</ConfigRequest>
私ServiceConfiguration.cscfg
はこれを持っています:
<ConfigurationSettings>
<Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="[myconnectionstring]"/>
[...]
</ConfigurationSettings>
そして私の中でServiceDefinition.csdef
:
<Imports>
<Import moduleName="Diagnostics"/>
</Imports>