dns

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const Name = "dns"

Variables

View Source
var ConfigDefaults = Config{}

Functions

This section is empty.

Types

type Collector added in v0.27.0

type Collector struct {
	// contains filtered or unexported fields
}

A Collector is a Prometheus Collector for WMI Win32_PerfRawData_DNS_DNS metrics.

func New

func New(config *Config) *Collector

func NewWithFlags

func NewWithFlags(_ *kingpin.Application) *Collector

func (*Collector) Build added in v0.27.0

func (c *Collector) Build(_ log.Logger, wmiClient *wmi.Client) error

func (*Collector) Close added in v0.27.0

func (c *Collector) Close() error

func (*Collector) Collect added in v0.27.0

func (c *Collector) Collect(_ *types.ScrapeContext, logger log.Logger, ch chan<- prometheus.Metric) error

Collect sends the metric values for each metric to the provided prometheus Metric channel.

func (*Collector) GetName added in v0.27.0

func (c *Collector) GetName() string

func (*Collector) GetPerfCounter added in v0.27.0

func (c *Collector) GetPerfCounter(_ log.Logger) ([]string, error)

type Config

type Config struct{}

type Win32_PerfRawData_DNS_DNS

type Win32_PerfRawData_DNS_DNS struct {
	AXFRRequestReceived            uint32
	AXFRRequestSent                uint32
	AXFRResponseReceived           uint32
	AXFRSuccessReceived            uint32
	AXFRSuccessSent                uint32
	CachingMemory                  uint32
	DatabaseNodeMemory             uint32
	DynamicUpdateNoOperation       uint32
	DynamicUpdateQueued            uint32
	DynamicUpdateRejected          uint32
	DynamicUpdateTimeOuts          uint32
	DynamicUpdateWrittentoDatabase uint32
	IXFRRequestReceived            uint32
	IXFRRequestSent                uint32
	IXFRResponseReceived           uint32
	IXFRSuccessSent                uint32
	IXFRTCPSuccessReceived         uint32
	IXFRUDPSuccessReceived         uint32
	NbstatMemory                   uint32
	NotifyReceived                 uint32
	NotifySent                     uint32
	RecordFlowMemory               uint32
	RecursiveQueries               uint32
	RecursiveQueryFailure          uint32
	RecursiveSendTimeOuts          uint32
	SecureUpdateFailure            uint32
	SecureUpdateReceived           uint32
	TCPMessageMemory               uint32
	TCPQueryReceived               uint32
	TCPResponseSent                uint32
	UDPMessageMemory               uint32
	UDPQueryReceived               uint32
	UDPResponseSent                uint32
	UnmatchedResponsesReceived     uint32
	WINSLookupReceived             uint32
	WINSResponseSent               uint32
	WINSReverseLookupReceived      uint32
	WINSReverseResponseSent        uint32
	ZoneTransferFailure            uint32
	ZoneTransferSOARequestSent     uint32
}

Win32_PerfRawData_DNS_DNS docs: - https://msdn.microsoft.com/en-us/library/ms803992.aspx?f=255&MSPPError=-2147217396 - https://technet.microsoft.com/en-us/library/cc977686.aspx

Jump to

Keyboard shortcuts

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