pktvisor

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: MPL-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const PktvisorVersion = "3.3.0"

Variables

This section is empty.

Functions

func Register

func Register(logger *zap.Logger) bool

Types

type DHCPPayload added in v0.11.0

type DHCPPayload struct {
	WirePackets struct {
		Filtered    int64 `mapstructure:"filtered"`
		Total       int64 `mapstructure:"total"`
		DeepSamples int64 `mapstructure:"deep_samples"`
		Discover    int64 `mapstructure:"discover"`
		Offer       int64 `mapstructure:"offer"`
		Request     int64 `mapstructure:"request"`
		Ack         int64 `mapstructure:"ack"`
	} `mapstructure:"wire_packets"`
	Rates struct {
		Total Rates `mapstructure:"total"`
	} `mapstructure:"rates"`
	Period PeriodPayload `mapstructure:"period"`
}

DHCPPayload contains the information specifically for the DNS protocol

type DNSPayload

type DNSPayload struct {
	WirePackets struct {
		Ipv4     int64 `mapstructure:"ipv4"`
		Ipv6     int64 `mapstructure:"ipv6"`
		Queries  int64 `mapstructure:"queries"`
		Replies  int64 `mapstructure:"replies"`
		TCP      int64 `mapstructure:"tcp"`
		Total    int64 `mapstructure:"total"`
		UDP      int64 `mapstructure:"udp"`
		Noerror  int64 `mapstructure:"noerror"`
		Nxdomain int64 `mapstructure:"nxdomain"`
		Srvfail  int64 `mapstructure:"srvfail"`
		Refused  int64 `mapstructure:"refused"`
	} `mapstructure:"wire_packets"`
	Rates struct {
		Total Rates `mapstructure:"total"`
	} `mapstructure:"rates"`
	Cardinality struct {
		Qname int64 `mapstructure:"qname"`
	} `mapstructure:"cardinality"`
	Xact struct {
		Counts struct {
			Total    int64 `mapstructure:"total"`
			TimedOut int64 `mapstructure:"timed_out"`
		} `mapstructure:"counts"`
		In struct {
			QuantilesUS struct {
				P50 int64 `mapstructure:"p50"`
				P90 int64 `mapstructure:"p90"`
				P95 int64 `mapstructure:"p95"`
				P99 int64 `mapstructure:"p99"`
			} `mapstructure:"quantiles_us"`
			TopSlow []NameCount `mapstructure:"top_slow"`
			Total   int64       `mapstructure:"total"`
		} `mapstructure:"in"`
		Out struct {
			QuantilesUS struct {
				P50 int64 `mapstructure:"p50"`
				P90 int64 `mapstructure:"p90"`
				P95 int64 `mapstructure:"p95"`
				P99 int64 `mapstructure:"p99"`
			} `mapstructure:"quantiles_us"`
			TopSlow []NameCount `mapstructure:"top_slow"`
			Total   int64       `mapstructure:"total"`
		} `mapstructure:"out"`
	} `mapstructure:"xact"`
	TopQname2   []NameCount   `mapstructure:"top_qname2"`
	TopQname3   []NameCount   `mapstructure:"top_qname3"`
	TopNxdomain []NameCount   `mapstructure:"top_nxdomain"`
	TopQtype    []NameCount   `mapstructure:"top_qtype"`
	TopRcode    []NameCount   `mapstructure:"top_rcode"`
	TopREFUSED  []NameCount   `mapstructure:"top_refused"`
	TopSRVFAIL  []NameCount   `mapstructure:"top_srvfail"`
	TopUDPPorts []NameCount   `mapstructure:"top_udp_ports"`
	Period      PeriodPayload `mapstructure:"period"`
}

DNSPayload contains the information specifically for the DNS protocol

type NameCount

type NameCount struct {
	Name     string `mapstructure:"name"`
	Estimate int64  `mapstructure:"estimate"`
}

NameCount represents the count of a unique domain name

type PacketPayload

type PacketPayload struct {
	Cardinality struct {
		DstIpsOut int64 `mapstructure:"dst_ips_out"`
		SrcIpsIn  int64 `mapstructure:"src_ips_in"`
	} `mapstructure:"cardinality"`
	Ipv4        int64 `mapstructure:"ipv4"`
	Ipv6        int64 `mapstructure:"ipv6"`
	TCP         int64 `mapstructure:"tcp"`
	Total       int64 `mapstructure:"total"`
	UDP         int64 `mapstructure:"udp"`
	In          int64 `mapstructure:"in"`
	Out         int64 `mapstructure:"out"`
	OtherL4     int64 `mapstructure:"other_l4"`
	DeepSamples int64 `mapstructure:"deep_samples"`
	Rates       struct {
		Pps_in struct {
			Live int64 `mapstructure:"live"`
			P50  int64 `mapstructure:"p50"`
			P90  int64 `mapstructure:"p90"`
			P95  int64 `mapstructure:"p95"`
			P99  int64 `mapstructure:"p99"`
		} `mapstructure:"pps_in"`
		Pps_out struct {
			Live int64 `mapstructure:"live"`
			P50  int64 `mapstructure:"p50"`
			P90  int64 `mapstructure:"p90"`
			P95  int64 `mapstructure:"p95"`
			P99  int64 `mapstructure:"p99"`
		} `mapstructure:"pps_out"`
		Pps_total struct {
			Live int64 `mapstructure:"live"`
			P50  int64 `mapstructure:"p50"`
			P90  int64 `mapstructure:"p90"`
			P95  int64 `mapstructure:"p95"`
			P99  int64 `mapstructure:"p99"`
		} `mapstructure:"pps_total"`
	} `mapstructure:"rates"`
	TopIpv4   []NameCount   `mapstructure:"top_ipv4"`
	TopIpv6   []NameCount   `mapstructure:"top_ipv6"`
	TopGeoLoc []NameCount   `mapstructure:"top_geoLoc"`
	TopASN    []NameCount   `mapstructure:"top_asn"`
	Period    PeriodPayload `mapstructure:"period"`
}

PacketPayload contains information about raw packets regardless of protocol

type PcapPayload

type PcapPayload struct {
	TcpReassemblyErrors int64 `mapstructure:"tcp_reassembly_errors"`
	IfDrops             int64 `mapstructure:"if_drops"`
	OsDrops             int64 `mapstructure:"os_drops"`
}

PcapPayload contains information about pcap input stream

type PeriodPayload

type PeriodPayload struct {
	StartTS int64 `mapstructure:"start_ts"`
	Length  int64 `mapstructure:"length"`
}

PeriodPayload indicates the period of time for which a snapshot refers to

type Rates added in v0.11.0

type Rates struct {
	Live int64 `mapstructure:"live"`
	P50  int64 `mapstructure:"p50"`
	P90  int64 `mapstructure:"p90"`
	P95  int64 `mapstructure:"p95"`
	P99  int64 `mapstructure:"p99"`
}

Rates represents a histogram of rates at various percentiles

type StatSnapshot

type StatSnapshot struct {
	DNS     DNSPayload
	DHCP    DHCPPayload
	Packets PacketPayload
	Pcap    PcapPayload
}

StatSnapshot is a snapshot of a given period from pktvisord

Jump to

Keyboard shortcuts

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