Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration for the new WMI plugin #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions wmi/etc/collectd.d/iis.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
LoadPlugin wmi
<Plugin wmi>
<Instance "iis">
<Query>
Statement "SELECT * FROM Win32_PerfFormattedData_W3SVC_WebService WHERE Name = \"_Total\""

<Metric>
Type "counter"
TypeInstance "TotalGetRequests"
Value "TotalGetRequests" "value"
</Metric>

<Metric>
Type "counter"
TypeInstance "TotalPostRequests"
Value "TotalPostRequests" "value"
</Metric>

<Metric>
Type "counter"
TypeInstance "TotalheadRequests"
Value "TotalHeadRequests" "value"
</Metric>

<Metric>
Type "counter"
TypeInstance "TotalPutRequests"
Value "TotalPutRequests" "value"
</Metric>

<Metric>
Type "counter"
TypeInstance "TotalDeleteRequests"
Value "TotalDeleteRequests" "value"
</Metric>

<Metric>
Type "counter"
TypeInstance "TotalOptionsRequests"
Value "TotalOptionsRequests" "value"
</Metric>

<Metric>
Type "counter"
TypeInstance "TotalTraceRequests"
Value "TotalTraceRequests" "value"
</Metric>

<Metric>
Type "counter"
TypeInstance "TotalConnectionAttemptsAllInstances"
Value "TotalConnectionAttemptsAllInstances" "value"
</Metric>

<Metric>
Type "counter"
TypeInstance "TotalBytesTransferred"
Value "TotalBytesTransferred" "value"
</Metric>

<Metric>
Type "counter"
TypeInstance "CurrentConnections"
Value "CurrentConnections" "value"
</Metric>
</Query>
</Instance>
</Plugin>
81 changes: 81 additions & 0 deletions wmi/etc/collectd.d/os.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
LoadPlugin wmi
<Plugin wmi>
<Instance "cpu">
<Query>
Statement "SELECT * FROM Win32_Processor"
<Metric>
Type "cpu"
Value "LoadPercentage" "value"
TypeInstance "LoadPercentage"
PluginInstanceSuffixFrom "ProcessorId"
</Metric>
</Query>
</Instance>

<Instance "mem">
<Query>
Statement "SELECT * FROM Win32_OperatingSystem"
<Metric>
Type "memory"
TypeInstance "FreePhysicalMemory"
Value "FreePhysicalMemory" "value"
</Metric>
<Metric>
Type "memory"
TypeInstance "TotalVisibleMemorySize"
Value "TotalVisibleMemorySize" "value"
</Metric>
</Query>
</Instance>

<Instance "pagefile">
<Query>
Statement "SELECT * FROM Win32_PageFileUsage"
<Metric>
Type "memory"
TypeInstance "CurrentUsage"
Value "CurrentUsage" "value"
</Metric>
<Metric>
Type "memory"
TypeInstance "AllocatedBaseSize"
Value "AllocatedBaseSize" "value"
</Metric>
</Query>
</Instance>

<Instance "disk">
<Query>
Statement "SELECT * FROM Win32_LogicalDisk WHERE DriveType = 3"
<Metric>
Type "memory"
TypeInstance "FreeSpace"
Value "FreeSpace" "value"
</Metric>
<Metric>
Type "memory"
TypeInstance "Size"
Value "Size" "value"
</Metric>
</Query>
</Instance>

<Instance "network">
<Query>
Statement "SELECT * FROM Win32_PerfFormattedData_Tcpip_TCPv4"
<Metric>
Type "tcp_connections"
TypeInstance "open_v4"
Value "ConnectionsEstablished" "value"
</Metric>
</Query>
<Query>
Statement "SELECT * FROM Win32_PerfFormattedData_Tcpip_TCPv6"
<Metric>
Type "tcp_connections"
TypeInstance "open_v6"
Value "ConnectionsEstablished" "value"
</Metric>
</Query>
</Instance>
</Plugin>