Skip to content

Commit

Permalink
nps: refactor collector (#1764)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
jkroepke authored Nov 24, 2024
1 parent 4c05745 commit 1ecc340
Show file tree
Hide file tree
Showing 2 changed files with 118 additions and 92 deletions.
32 changes: 32 additions & 0 deletions internal/collector/nps/const.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package nps

const (
// NPS Authentication Server
accessAccepts = "Access-Accepts"
accessChallenges = "Access-Challenges"
accessRejects = "Access-Rejects"
accessRequests = "Access-Requests"
accessBadAuthenticators = "Bad Authenticators"
accessDroppedPackets = "Dropped Packets"
accessInvalidRequests = "Invalid Requests"
accessMalformedPackets = "Malformed Packets"
accessPacketsReceived = "Packets Received"
accessPacketsSent = "Packets Sent"
accessServerResetTime = "Server Reset Time"
accessServerUpTime = "Server Up Time"
accessUnknownType = "Unknown Type"

// NPS Accounting Server
accountingRequests = "Accounting-Requests"
accountingResponses = "Accounting-Responses"
accountingBadAuthenticators = "Bad Authenticators"
accountingDroppedPackets = "Dropped Packets"
accountingInvalidRequests = "Invalid Requests"
accountingMalformedPackets = "Malformed Packets"
accountingNoRecord = "No Record"
accountingPacketsReceived = "Packets Received"
accountingPacketsSent = "Packets Sent"
accountingServerResetTime = "Server Reset Time"
accountingServerUpTime = "Server Up Time"
accountingUnknownType = "Unknown Type"
)
Loading

0 comments on commit 1ecc340

Please sign in to comment.