Documentation
¶
Index ¶
Constants ¶
View Source
const ( NF_CONNTRACK_COUNT_PATH = "/proc/sys/net/netfilter/nf_conntrack_count" NF_CONNTRACK_LIMIT_PATH = "/proc/sys/net/netfilter/nf_conntrack_max" )
Variables ¶
View Source
var ( NfConnctackCount = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Namespace: constants.MetricsNS, Subsystem: "egress", Name: "nf_conntrack_entries_count", Help: "the number of entries in the nf_conntrack table", }, []string{"namespace", "pod", "egress"}) NfConnctackLimit = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Namespace: constants.MetricsNS, Subsystem: "egress", Name: "nf_conntrack_entries_limit", Help: "the limit of the nf_conntrack table", }, []string{"namespace", "pod", "egress"}) NfTableMasqueradePackets = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Namespace: constants.MetricsNS, Subsystem: "egress", Name: "nftables_masqueraded_packets_total", Help: "the number of packets that are masqueraded by nftables", }, []string{"namespace", "pod", "egress"}) NfTableMasqueradeBytes = prometheus.NewGaugeVec(prometheus.GaugeOpts{ Namespace: constants.MetricsNS, Subsystem: "egress", Name: "nftables_masqueraded_bytes_total", Help: "the number of bytes that are masqueraded by nftables", }, []string{"namespace", "pod", "egress"}) )
Functions ¶
This section is empty.
Types ¶
type Collector ¶
func NewEgressCollector ¶
Click to show internal directories.
Click to hide internal directories.