nps

package
v0.29.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "nps"

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
}

Collector is a Prometheus Collector for WMI Win32_PerfRawData_IAS_NPSAuthenticationServer and Win32_PerfRawData_IAS_NPSAccountingServer 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(_ *slog.Logger, wmiClient *wmi.Client) error

func (*Collector) Close added in v0.27.0

func (c *Collector) Close(_ *slog.Logger) error

func (*Collector) Collect added in v0.27.0

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

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

func (*Collector) CollectAccept added in v0.27.0

func (c *Collector) CollectAccept(ch chan<- prometheus.Metric) error

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

func (*Collector) CollectAccounting added in v0.27.0

func (c *Collector) CollectAccounting(ch chan<- prometheus.Metric) error

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(_ *slog.Logger) ([]string, error)

type Config

type Config struct{}

type Win32_PerfRawData_IAS_NPSAccountingServer

type Win32_PerfRawData_IAS_NPSAccountingServer struct {
	Name string

	AccountingRequests          uint32
	AccountingResponses         uint32
	AccountingBadAuthenticators uint32
	AccountingDroppedPackets    uint32
	AccountingInvalidRequests   uint32
	AccountingMalformedPackets  uint32
	AccountingNoRecord          uint32
	AccountingPacketsReceived   uint32
	AccountingPacketsSent       uint32
	AccountingServerResetTime   uint32
	AccountingServerUpTime      uint32
	AccountingUnknownType       uint32
}

type Win32_PerfRawData_IAS_NPSAuthenticationServer

type Win32_PerfRawData_IAS_NPSAuthenticationServer struct {
	Name string

	AccessAccepts           uint32
	AccessChallenges        uint32
	AccessRejects           uint32
	AccessRequests          uint32
	AccessBadAuthenticators uint32
	AccessDroppedPackets    uint32
	AccessInvalidRequests   uint32
	AccessMalformedPackets  uint32
	AccessPacketsReceived   uint32
	AccessPacketsSent       uint32
	AccessServerResetTime   uint32
	AccessServerUpTime      uint32
	AccessUnknownType       uint32
}

Win32_PerfRawData_IAS_NPSAuthenticationServer docs: at the moment there is no Microsoft documentation.

Jump to

Keyboard shortcuts

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