Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EAP (Authenticator) related metrics Auth = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "eap_auth", Help: "EAP Auth responses processed, partitioned by authenticator's EapMsgCode code, " + "supplicant's EAP method & APN (Called Station ID). Attach failures will have code: Failure", }, []string{"code", "method", "apn"}, ) // Sessions Sessions = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Name: "active_sessions", Help: "Number of active user sessions partitioned by APN", }, []string{"apn", "imsi", "id"}, ) SessionTimeouts = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "session_timeouts", Help: "Session timeouts, partitioned by APN, IMSI", }, []string{"apn", "imsi"}, ) SessionStart = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "session_start", Help: "Session start partitioned by APN, IMSI, SessionID", }, []string{"apn", "imsi", "id"}, ) SessionStop = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "session_stop", Help: "Session stop partitioned by APN, IMSI, SessionID", }, []string{"apn", "imsi", "id"}, ) // Latencies CreateSessionLatency = prometheus.NewSummary(prometheus.SummaryOpts{ Name: "create_session_lat", Help: "Latency of accounting.CreateSession requests (seconds).", Objectives: map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001}, }) // Data usage OctetsIn = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "octets_in", Help: "Inboud data usage, partitioned by APN, IMSI", }, []string{"apn", "imsi"}, ) OctetsOut = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "octets_out", Help: "Outbound data usage, partitioned by APN, IMSI", }, []string{"apn", "imsi"}, ) // Acct AcctStop = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "accounting_stop", Help: "Accounting Stop Calls, partitioned by APN, IMSI", }, []string{"apn", "imsi"}, ) SessionTerminate = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "session_manager_terminate", Help: "Terminate Session Calls by Local Session Manager, partitioned by APN, IMSI", }, []string{"apn", "imsi"}, ) EndSession = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "end_session", Help: "EndSession Calls to Local Session Manager, partitioned by APN, IMSI", }, []string{"apn", "imsi"}, ) )
Prometheus counters are monotonically increasing Counters reset to zero on service restart
Functions ¶
func DecorateIMSI ¶
DecorateIMSI prepends "IMSI" to 'clean' IMSI
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.