wmi

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

README

wmi

This module will monitor one or more Windows machines, using the wmi_exporter.

wmi_exporter configuration

Module collects metrics from following collectors:

  • cpu
  • memory
  • net
  • logical_disk
  • os
  • system

Run wmi_exporter with these collectors:

wmi-exporter-0.7.0-386.exe --collectors.enabled="cpu,memory,net,logical_disk,os,system"

Installation: please follow official guide.

charts
cpu
  1. Total CPU Utilization (all cores) in percentage
  • dpc
  • user
  • privileged
  • interrupt
  1. Received and Serviced Deferred Procedure Calls (DPC) in dpc/c

  2. Received and Serviced Hardware Interrupts in interrupts/s

  3. CPU Utilization Per Core in percentage

  • dpc
  • user
  • privileged
  • interrupt
  1. Time Spent in Low-Power Idle State Per Core in percentage
  • c1
  • c2
  • c3
memory
  1. Memory Utilization in KiB
  • available
  • used
  1. Memory Page Faults in events/s
  • page faults
  1. Swap Utilization in KiB
  • available
  • used
  1. Swap Operations in operations/s
  • read
  • write
  1. Swap Pages pages/s
  • read
  • written
  1. Cached Data in KiB
  • cached
  1. Cache Faults in events/s
  • cache faults
  1. System Memory Pool in KiB
  • paged
  • non-pages
network
  1. Bandwidth Per NIC in kilobits/s
  • received
  • sent
  1. Packets Per NIC in packets/s
  • received
  • sent
  1. Errors Per NIC in errors/s
  • inbound
  • outbound
  1. Discards Per NIC in discards/s
  • inbound
  • outbound
disk
  1. Utilization Per Disk in KiB
  • free
  • used
  1. Bandwidth Per Disk in KiB/s
  • read
  • write
  1. Operations Per Disk in operations/s
  • reads
  • writes
system
  1. Processes in number
  • processes
  1. Threads in number
  • threads
  1. Uptime in seconds
  • time
configuration

Needs only url to wmi_exporter metrics endpoint.

Here is an example for 2 instances:

jobs:
  - name : win_server1
    url  : http://10.0.0.1:9182/metrics

  - name : win_server2
    url  : http://10.0.0.2:9182/metrics

For all available options please see module configuration file.


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart = module.Chart

Chart is an alias for module.Chart

type Charts

type Charts = module.Charts

Charts is an alias for module.Charts

type Config

type Config struct {
	web.HTTP `yaml:",inline"`
}

Config is the WMI module configuration.

type Dim

type Dim = module.Dim

Dim is an alias for module.Dim

type Dims

type Dims = module.Dims

Dims is an alias for module.Dims

type Opts

type Opts = module.DimOpts

Dim is an alias for module.Dim

type Vars

type Vars = module.Vars

Vars is an alias for module.Vars

type WMI

type WMI struct {
	module.Base
	Config `yaml:",inline"`
	// contains filtered or unexported fields
}

WMI WMI module.

func New

func New() *WMI

New creates WMI with default values.

func (WMI) Charts

func (w WMI) Charts() *Charts

Charts creates Charts.

func (WMI) Check

func (w WMI) Check() bool

Check makes check.

func (WMI) Cleanup

func (WMI) Cleanup()

Cleanup makes cleanup.

func (*WMI) Collect

func (w *WMI) Collect() map[string]int64

Collect collects metrics.

func (*WMI) Init

func (w *WMI) Init() bool

Init makes initialization.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL