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 PodBasedMetrics = []*prometheus.CounterVec{ DNSQueryCounter, SyscallCounter, NetworkReceivedBytesCounter, NetworkSentBytesCounter, NetworkSentPacketsCounter, NetworkReceivedPacketsCounter, }
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.
Click to show internal directories.
Click to hide internal directories.