metrics

package
v0.0.0-...-e9f4c3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentMetric

type AgentMetric struct {
	// contains filtered or unexported fields
}

func NewAgentMetric

func NewAgentMetric() *AgentMetric

func (*AgentMetric) ArpInc

func (m *AgentMetric) ArpInc()

func (*AgentMetric) ArpRejectInc

func (m *AgentMetric) ArpRejectInc()

func (*AgentMetric) GetCollectors

func (m *AgentMetric) GetCollectors() []prometheus.Collector

func (*AgentMetric) SetRuleEntryNum

func (m *AgentMetric) SetRuleEntryNum(policyID string, num int, limited bool)

func (*AgentMetric) SetRuleEntryTotalNum

func (m *AgentMetric) SetRuleEntryTotalNum(num int)

func (*AgentMetric) ShouldLimit

func (m *AgentMetric) ShouldLimit(policyID []string) bool

func (*AgentMetric) UpdatePolicyName

func (m *AgentMetric) UpdatePolicyName(policyID string, policy *securityv1alpha1.SecurityPolicy)

type ControllerMetric

type ControllerMetric struct {
	// contains filtered or unexported fields
}

func NewControllerMetric

func NewControllerMetric() *ControllerMetric

func (*ControllerMetric) GetIPMigrateCount

func (c *ControllerMetric) GetIPMigrateCount() *IPMigrateCount

func (*ControllerMetric) Init

func (c *ControllerMetric) Init()

func (*ControllerMetric) InstallHandler

func (c *ControllerMetric) InstallHandler(registryFunc func(path string, handler http.Handler))

func (*ControllerMetric) Run

func (c *ControllerMetric) Run(ctx context.Context)

type IPMigrateCount

type IPMigrateCount struct {
	// contains filtered or unexported fields
}

func NewIPMigrateCount

func NewIPMigrateCount() *IPMigrateCount

func (*IPMigrateCount) Inc

func (i *IPMigrateCount) Inc(ip, vm string)

func (*IPMigrateCount) Run

func (i *IPMigrateCount) Run(ctx context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL