0

Azure PHP Web ロールで診断を有効にしました。WADDiagnosticInfraestructureLogsTable2 つのテーブルとを作成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>
4

1 に答える 1

0

あなたの構成はよさそうです。

テーブルの作成とログ記録を開始するために、デプロイに少なくとも 5 ~ 10 分かかりましたか?

于 2012-08-02T13:47:07.830 に答える