metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DNSQueryCounter = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Name: "dns_query_counter",
		Help: "Number of DNS queries",
	},
	[]string{"pod"},
)
View Source
var NetworkReceivedBytesCounter = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Name: "network_received_bytes_counter",
		Help: "Number of bytes received",
	},
	[]string{"pod", "remote_subnet"},
)
View Source
var NetworkReceivedPacketsCounter = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Name: "network_received_packets_counter",
		Help: "Number of packets received",
	},
	[]string{"pod", "remote_subnet"},
)
View Source
var NetworkSentBytesCounter = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Name: "network_sent_bytes_counter",
		Help: "Number of bytes sent",
	},
	[]string{"pod", "remote_subnet"},
)
View Source
var NetworkSentPacketsCounter = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Name: "network_sent_packets_counter",
		Help: "Number of packets sent",
	},
	[]string{"pod", "remote_subnet"},
)
View Source
var SyscallCounter = prometheus.NewCounterVec(
	prometheus.CounterOpts{
		Name: "syscall_counter",
		Help: "Number of syscalls",
	},
	[]string{"syscall", "pod"},
)

Functions

func RegisterMetrics

func RegisterMetrics()

func StartServer

func StartServer(log *slog.Logger, cancel context.CancelFunc, port uint64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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