Upload
microsoft-private-cloud
View
769
Download
3
Embed Size (px)
Citation preview
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
Demo
Role
Role Instance
Diagnostic
Monitor
Configuration
Quota
enforcement
Local directory storage
Data collection
(traces, logs, cra
sh dumps)
Windows
Data Sources
IIS Logs & Failed Request Logs
Perf Counters
Windows Event Logs
Role
Role Instance
Diagnostic
Monitor
Local directory storage
Request upload
Windows
Azure
Storage
Scheduled or on-demand
upload
Windows
Data Sources
Windows Azure
Hosted Service
Development
Fabric
Development
Fabric
Windows Azure
Hosted Service
Controller
Code
Desktop Diag Application
Diagnostic
Manager
Configure
Activate Windows Azure Diagnostics
Generate Data
Enable Local Buffering
Transfer to Windows Azure Storage
// This is done for you automatically by // Windows Azure Tools for Visual Studio
// Add a reference to Microsoft.WindowsAzure.Diagnosticsusing
// Activate diagnostics in the role's OnStart() methodpublic override bool
// Use the connection string contained in the // application configuration setting named // "DiagnosticsConnectionString” // If the value of this setting is // "UseDevelopmentStorage=true" then will use dev stgDiagnosticMonitor "DiagnosticsConnectionString"
<!–This is automatically inserted by VS. The listener routes System.Diagnostics.Trace messages to Windows Azure Diagnostics.
--><system.diagnostics><trace><listeners><add
type= Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35name= AzureDiagnostics >
<filter type= /></add>
</listeners></trace>
</system.diagnostics>
stringRoleEnvironment
// Trace with standard .Net tracing APIsTrace
"Informational trace from "
// Capture full crash dumpsCrashDumps true// Capture mini crash dumpsCrashDumps false
// Managed traces, IIS logs, failed request logs, // crashdumps and WA diags internal logs are buffered // in local storage by default. Other data sources must be // added explicitlyDiagnosticMonitorConfigurationDiagnosticMonitor
// Add performance counter monitoringPerformanceCounterConfiguration newPerformanceCounterConfiguration
// Run typeperf.exe /q to query for counter names
@"\Processor(*)\% Processor Time"TimeSpan
// Continued on next slide...
// Continued from previous slide...
// Add event collection from the Windows Event Log// Syntax: <Channel>!<xpath query> // http://msdn.microsoft.com/en-us/library/dd996910(VS.85).aspx
"System!*"
// Restart diagnostics with this custom local buffering // configurationDiagnosticMonitor"DiagnosticsConnectionString"
<!--You can optionally enable IIS failed request tracing.This has some performance overheadA service upgrade is required to toggle this setting.
--><system.webServer><tracing><traceFailedRequests><add path= * ><traceAreas><add provider= ASP verbosity= Verbose /><add provider= ASPNET
areas= Infrastructure,Module,Page,AppServiceverbosity= Verbose />
<add provider= ISAPI Extension verbosity= Verbose /><add provider= WWW Server verbosity= Verbose />
</traceAreas><failureDefinitions statusCodes= 200-599 />
</add></traceFailedRequests>
</tracing></system.webServer>
// Start off with the default initial configurationDiagnosticMonitorConfigurationDiagnosticMonitor
"Application!*"
TimeSpan
DiagnosticMonitor "DiagnosticsConnectionString"
// On-Demand transfer of buffered files.// This code can live in the role, or on the desktop,// or even in another service.var new DeploymentDiagnosticManager
var
var DataBufferNameOnDemandTransferOptionsnew OnDemandTransferOptions
DateTimeDateTime
LogLevelGuid
>
>
>
>
>
>
>
>
>>
>
>
>>
>
>
>
Data Source Default Configuration How to Configure Format
Trace logs Enabled, stored locally Diag API, Trace listener Table
Performance Counters Disabled Diag API Table
Windows Event Logs Disabled Diag API Table
Infrastructure Logs Enabled, stored locally Diag API Table
IIS Logs Enabled, stored locally Diag API, Web.config Blob
IIS Failed Request Logs Disabled Diag API, Web.config Blob
Application Crash Dumps Disabled Diag API, Crash API Blob
Arbitrary Logs & Files Disabled Diag API Blob
>
>
>
>
>
>
>
>
>
>
>
>
Demo
http://diags.cloudapp.net
Controller
DiagController.exe
Diagnostic
Manager
PowerShell scripts
Survey
Results
Survey
Web Role
Diagnostic
Monitor
My Utility
Classes
My Utility
Classes
Table
Diags
>
>
>
>
>
>
>
channel9.msdn.com/learnBuilt by Developers for Developers….
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT
MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
http://www.microsoft.com/windowsazure/
http://www.microsoft.com/india/cloud/