metrics

package
v0.0.0-alpha.0....-18a57d7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordEgressFirewallCount

func RecordEgressFirewallCount(count float64)

RecordEgressFirewallCount records the number of kind EgressNetworkPolicy

func RecordEgressFirewallRuleCount

func RecordEgressFirewallRuleCount(count float64)

RecordEgressFirewallRuleCount records the number of Egress firewall rules. Represents the sum of all egress rules for kind EgressNetworkPolicy.

func RecordEgressIPCount

func RecordEgressIPCount(count float64)

RecordEgressIPCount records the number of active Egress IPs. This may include multiple Egress IPs for kind EgressIP.

func RecordMulticastEnabledNamespaceCount

func RecordMulticastEnabledNamespaceCount(count float64)

RecordMulticastEnabledNamespaceCount records the number of namespaces with multicast enabled.

func Register

func Register()

func StartServer

func StartServer() *http.Server

StartServer registers prometheus metrics and starts HTTP server (non-blocking). Binding address maybe overridden by env variable.

func StopServer

func StopServer(server *http.Server)

StopServer attempts to shutdown the HTTP server argument.

Types

This section is empty.

Jump to

Keyboard shortcuts

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