metrics

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SocketPath = "/var/run/dpdk/rte/dpdk_telemetry.v2"

Variables

View Source
var (
	InterfaceStat = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "dpdk_interface_stat",
			Help: "Dp-Service interface statistic",
		},
		[]string{"interface", "stat_name"},
	)

	CallCount = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "dpdk_graph_stat",
			Help: "Dp-Service graph statistics",
		},
		[]string{"node_name", "graph_node"},
	)

	HeapInfo = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "dpdk_heap_info",
			Help: "Dp-Service heap info",
		},
		[]string{"node_name", "info"},
	)
)

Functions

func Update

func Update(conn net.Conn, hostname string, log *logrus.Logger)

Types

type DpServiceGraphCallCount

type DpServiceGraphCallCount struct {
	GraphCallCnt GraphCallCount `json:"/dp_service/graph/call_count"`
}

type DpServiceHeapInfo added in v0.1.10

type DpServiceHeapInfo struct {
	Value map[string]any `json:"/eal/heap_info"`
}

type DpServiceNatPort

type DpServiceNatPort struct {
	Value map[string]int `json:"/dp_service/nat/used_port_count"`
}

type DpServiceVirtsvcPort

type DpServiceVirtsvcPort struct {
	Value map[string]int `json:"/dp_service/virtsvc/used_port_count"`
}

type EthdevInfo

type EthdevInfo struct {
	Value struct {
		Name string `json:"name"`
	} `json:"/ethdev/info"`
}

type EthdevList

type EthdevList struct {
	Value []int `json:"/ethdev/list"`
}

type EthdevXstats

type EthdevXstats struct {
	Value map[string]float64 `json:"/ethdev/xstats"`
}

type GraphCallCount

type GraphCallCount struct {
	Node_0_to_255 NodeData `json:"Node_0_to_255"`
}

type NodeData

type NodeData map[string]float64

Jump to

Keyboard shortcuts

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