Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accounting ¶
type Accounting struct { Requests uint32 Responses uint32 DuplicateRequests uint32 MalformedRequests uint32 InvalidRequests uint32 DroppedRequests uint32 UnknownTypes uint32 }
Accounting type.
type Auth ¶
type Auth struct { Responses uint32 DuplicateRequests uint32 MalformedRequests uint32 InvalidRequests uint32 DroppedRequests uint32 UnknownTypes uint32 }
Auth type.
type FreeRADIUSClient ¶
type FreeRADIUSClient struct {
// contains filtered or unexported fields
}
FreeRADIUSClient fetches metrics from status server.
func NewFreeRADIUSClient ¶
func NewFreeRADIUSClient(addr string, homeServers []string, secret string, timeout int) (*FreeRADIUSClient, error)
NewFreeRADIUSClient creates an FreeRADIUSClient.
func (*FreeRADIUSClient) Stats ¶
func (f *FreeRADIUSClient) Stats() ([]prometheus.Metric, error)
Stats fetches statistics.
type Internal ¶
type Internal struct { QueueLenInternal uint32 QueueLenProxy uint32 QueueLenAuth uint32 QueueLenAcct uint32 QueueLenDetail uint32 }
Internal type.
type Server ¶
type Server struct { OutstandingRequests uint32 State uint32 TimeOfDeath time.Time TimeOfLife time.Time LastPacketRecv time.Time LastPacketSent time.Time StartTime time.Time HUPTime time.Time EmaWindow uint32 EmaUsecWindow1 uint32 EmaUsecWindow10 uint32 QueuePPSIn uint32 QueuePPSOut uint32 QueueUsePercentage uint32 }
Server specific stats.
type Statistics ¶
type Statistics struct { Error string Access Access Auth Auth ProxyAccess Access ProxyAuth Auth Accounting Accounting ProxyAccounting Accounting Internal Internal Server Server }
Statistics type.
Click to show internal directories.
Click to hide internal directories.