Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OutgoingConnection = ConnDirection("outgoing") IncomingConnection = ConnDirection("incoming") )
View Source
var ( // copied from: https://github.com/torvalds/linux/blob/master/include/uapi/linux/netfilter/nf_conntrack_tcp.h#L9 TCP_CONNTRACK_SYN_SENT uint8 = 1 TCP_CONNTRACK_ESTABLISHED uint8 = 3 TCP_CONNTRACK_CLOSE_WAIT uint8 = 5 TCP_CONNTRACK_LAST_ACK uint8 = 6 TCP_CONNTRACK_TIME_WAIT uint8 = 7 // copied from: https://github.com/torvalds/linux/blob/0d81a3f29c0afb18ba2b1275dcccf21e0dd4da38/include/uapi/linux/in.h#L28 IPPROTO_TCP uint8 = 6 IPPROTO_UDP uint8 = 17 )
Functions ¶
func NewCIDRClassifier ¶
Types ¶
type ConnDirection ¶
type ConnDirection string
type Conntrack ¶
func NewConntrack ¶
type ConntrackCollector ¶
type ConntrackCollector struct {
// contains filtered or unexported fields
}
func (*ConntrackCollector) Collect ¶
func (c *ConntrackCollector) Collect(ch chan<- prometheus.Metric)
func (*ConntrackCollector) Describe ¶
func (c *ConntrackCollector) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.