Documentation ¶
Index ¶
- Constants
- Variables
- type Collector
- func (c *Collector) Build(_ *slog.Logger, wmiClient *wmi.Client) error
- func (c *Collector) Close(_ *slog.Logger) error
- func (c *Collector) Collect(_ *types.ScrapeContext, logger *slog.Logger, ch chan<- prometheus.Metric) error
- func (c *Collector) CollectAccept(ch chan<- prometheus.Metric) error
- func (c *Collector) CollectAccounting(ch chan<- prometheus.Metric) error
- func (c *Collector) GetName() string
- func (c *Collector) GetPerfCounter(_ *slog.Logger) ([]string, error)
- type Config
- type Win32_PerfRawData_IAS_NPSAccountingServer
- type Win32_PerfRawData_IAS_NPSAuthenticationServer
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 NewWithFlags ¶
func NewWithFlags(_ *kingpin.Application) *Collector
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
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.
Click to show internal directories.
Click to hide internal directories.