Documentation
¶
Overview ¶
* Copyright (c) 2023 NetLOX Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- Variables
- func Init()
- func PrometheusRegister(hook cmn.NetHookInterface)
- func RunActiveConntrackCount()
- func RunGetConntrack()
- func RunGetEndpoint()
- func RunGetLBRule()
- func RunHostCount()
- func RunLcusCalculator()
- func RunNewFlowCount()
- func RunProcessedStatistic()
- func RunResetCounts()
- type ConntrackKey
- type Stats
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConntrackInfo []cmn.CtInfo EndPointInfo []cmn.EndPointMod LBRuleInfo []cmn.LbRuleMod ConntrackStats map[ConntrackKey]Stats // Key [string] : sip dip pro sport dport PreFlowCounts int PromethusDefaultPeriod = 10 * time.Second PromethusPartialPeriod = (PromethusDefaultPeriod / 6) PromethusLongPeriod = (PromethusDefaultPeriod * 600) // To reset Period )
Functions ¶
func PrometheusRegister ¶
func PrometheusRegister(hook cmn.NetHookInterface)
func RunActiveConntrackCount ¶
func RunActiveConntrackCount()
func RunGetConntrack ¶
func RunGetConntrack()
func RunGetEndpoint ¶
func RunGetEndpoint()
func RunGetLBRule ¶
func RunGetLBRule()
func RunHostCount ¶
func RunHostCount()
func RunLcusCalculator ¶
func RunLcusCalculator()
func RunNewFlowCount ¶
func RunNewFlowCount()
func RunProcessedStatistic ¶
func RunProcessedStatistic()
func RunResetCounts ¶
func RunResetCounts()
Types ¶
type ConntrackKey ¶
type ConntrackKey string
func MakeConntrackKey ¶
func MakeConntrackKey(c cmn.CtInfo) (key ConntrackKey)
Click to show internal directories.
Click to hide internal directories.