lifting the blinds: monitoring windows server 2012

30
Read the full guide at: http://www.datadoghq.com/blog/monitoring-windows-server/ g the Blinds: Monitoring Windows Server

Upload: datadog

Post on 22-Jan-2018

2.888 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Lifting the Blinds: Monitoring Windows Server 2012

Read the full guide at: http://www.datadoghq.com/blog/monitoring-windows-server/

Lifting the Blinds: Monitoring Windows Server 2012

Page 2: Lifting the Blinds: Monitoring Windows Server 2012

• SaaS based infrastructure and app monitoring

• Open Source Agent

• Time series data (metrics and events)

• Processing nearly a trillion data points per day

• Intelligent Alerting and Insightful Dashboards

Datadog Overview

Page 3: Lifting the Blinds: Monitoring Windows Server 2012

Operating Systems, Cloud Providers (AWS), Containers, Web Servers, Datastores,

Caches, Queues and more...

Monitor Everything

Page 4: Lifting the Blinds: Monitoring Windows Server 2012

Agenda

- Why should I monitor Windows Server?

- What are some indicators of performance

issues?

- How can I collect performance metrics for

analysis?

Page 5: Lifting the Blinds: Monitoring Windows Server 2012
Page 6: Lifting the Blinds: Monitoring Windows Server 2012

What to monitor?

Page 7: Lifting the Blinds: Monitoring Windows Server 2012
Page 8: Lifting the Blinds: Monitoring Windows Server 2012

CPU metrics

- PercentProcessorTime

- ContextSwitchesPersec

- ProcessorQueueLength

- DPCsQueuedPersec

- PercentPrivilegedTime

- PercentDPCTime

- PercentInterruptTime

Page 9: Lifting the Blinds: Monitoring Windows Server 2012

CPU: ContextSwitchesPersecWhat it tracks:

Number of times the processor switched to a new thread

Correlate with:

Memory: PageFaultsPersec

Disk: DiskTransfersPersec

Network: BytesSentPersec/BytesReceivedPersec

Issue resolution:Adding processors, thread partitioning, DPC partitioning,

hardware interrupt partitioning, disable I/O counters

Page 10: Lifting the Blinds: Monitoring Windows Server 2012

CPU: PercentProcessorTimeWhat it tracks:

Percentage of time spent performing work (not idle)

Correlate with:ProcessorQueueLength

Issue resolution:More processors, bigger instance, optimize offending application,

Page 11: Lifting the Blinds: Monitoring Windows Server 2012

CPU: ProcessorQueueLengthWhat it tracks:

Size of processor queue

Correlate with:

CPU: PercentProcessorTime, PercentPrivilegedTime, PercentDPCTime, PercentInterruptTime

Issue resolution:Adding processors, thread partitioning, DPC partitioning,

hardware interrupt partitioning, disable I/O counters

Page 12: Lifting the Blinds: Monitoring Windows Server 2012

CPU:DPCsQueuedPersecWhat it tracks:

Deferred procedure call (DPC) enqueue rate

Correlate with:

CPU: PercentDPCTime

Disk: DiskTransfersPersec

Network: BytesSentPersec/BytesReceivedPersec

Issue resolution:Remove buggy device, rollback driver

Page 13: Lifting the Blinds: Monitoring Windows Server 2012

CPU: PercentPrivilegedTime/PercentDPCTime

PercentInterruptTimeWhat they track:

Percentage of time CPU spent in privileged mode/deferred procedure

calls/interrupts

Correlate with:ContextSwitchesPersec/PercentPrivilegedTime/PercentDPCTime PercentInterruptTime

Issue resolution:Adding processors, thread partitioning, DPC partitioning,

hardware interrupt partitioning, disable I/O counters

Page 14: Lifting the Blinds: Monitoring Windows Server 2012

Memory metrics

- PoolNonpagedBytes

- PageFaultsPersec

- PagesInputPersec

Page 15: Lifting the Blinds: Monitoring Windows Server 2012

Memory: PoolNonpagedBytesWhat it tracks:

Amount of non-paged memory in use

Correlate with:

Windows Event 2019 “Nonpaged Memory Pool Empty”

Issue resolution:Identify troublesome driver/roll back to known good state

Page 16: Lifting the Blinds: Monitoring Windows Server 2012

What it tracks:

Rate of page faults

Correlate with:

PagesInputPersec

Issue resolution:Increase system memory

Memory: PageFaultsPersec

Page 17: Lifting the Blinds: Monitoring Windows Server 2012

What it tracks:

Rate pages are read (from disk) into memory

Correlate with:

PageFaultsPersec/ DiskTransfersPersec

Issue resolution:Increase system memory, move page file to separate physical disk

Memory: PagesInputPersec

Page 18: Lifting the Blinds: Monitoring Windows Server 2012

- AvgDiskQueueLength

- DiskTransfersPersec

- PercentIdleTime

Disk Metrics

Page 19: Lifting the Blinds: Monitoring Windows Server 2012

Disk: AvgDiskQueueLengthWhat it tracks:

Running average of I/O ops in queue

Correlate with:DiskTransfersPersec

Issue resolution:Move data for I/O-intensive applications to separate disk; add disks to system

Page 20: Lifting the Blinds: Monitoring Windows Server 2012

Disk: DiskTransfersPersecWhat it tracks:

Aggregate I/O rate

Correlate with:AvgDiskQueueLength

Issue resolution:Move data for I/O-intensive applications to separate disk; add disks to

system; increase disk cache

Page 21: Lifting the Blinds: Monitoring Windows Server 2012

Disk: PercentIdleTimeWhat it tracks:

Percent of time disk is idle

Correlate with:AvgDiskQueueLength

Issue resolution:Move page file to separate disk; add disks to system; use SSDs

Page 22: Lifting the Blinds: Monitoring Windows Server 2012

Tooling

Page 23: Lifting the Blinds: Monitoring Windows Server 2012

Word of Warning

Page 24: Lifting the Blinds: Monitoring Windows Server 2012

Powershell

- Windows’ scripting language (no more batch files!)

- Powerful language with deep OS support

- Integrates with C# natively

- Output is typed (unlike *NIX)

Page 25: Lifting the Blinds: Monitoring Windows Server 2012

Powershell

Page 26: Lifting the Blinds: Monitoring Windows Server 2012

Powershell

Page 27: Lifting the Blinds: Monitoring Windows Server 2012

Perfmon

Page 28: Lifting the Blinds: Monitoring Windows Server 2012

Windows Performance Toolkit

Requires Windows

Assessment and

Deployment Kit (formerly

Windows Performance

Toolkit)

https://www.microsoft.com

/en-

US/download/details.aspx

?id=39982

Page 29: Lifting the Blinds: Monitoring Windows Server 2012

Windows Performance Recorder

Page 30: Lifting the Blinds: Monitoring Windows Server 2012

Questions?

Evan Mouzakitis

Research Engineer

Twitter: @vagelim

Email: [email protected]

Read the full guide at: http://www.datadoghq.com/blog/monitoring-windows-server/