-
Notifications
You must be signed in to change notification settings - Fork 7
/
types.go
26 lines (24 loc) · 999 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package collector
type PodNetworkMetric struct {
SrcIP string `json:"src_ip"`
SrcPod string `json:"src_pod,omitempty"`
SrcNamespace string `json:"src_namespace,omitempty"`
SrcNode string `json:"src_node,omitempty"`
SrcZone string `json:"src_zone,omitempty"`
DstIP string `json:"dst_ip"`
DstIPType string `json:"dst_ip_type"`
DstPod string `json:"dst_pod,omitempty"`
DstNamespace string `json:"dst_namespace,omitempty"`
DstNode string `json:"dst_node,omitempty"`
DstZone string `json:"dst_zone,omitempty"`
TxBytes uint64 `json:"tx_bytes,omitempty"`
TxPackets uint64 `json:"tx_packets,omitempty"`
RxBytes uint64 `json:"rx_bytes,omitempty"`
RxPackets uint64 `json:"rx_packets,omitempty"`
Proto string `json:"proto"`
TS uint64 `json:"ts,omitempty"`
// lifetime is used to remove old pod metrics.
// This will happen if there are no more conntrack entries
// updating this metric.
lifetime uint32
}