Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPlugin = *NewPlugin()
DefaultPlugin is default instance of Plugin
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Custom polling interval, default value is 30s PollingInterval time.Duration `json:"polling-interval"` // Allows to disable plugin Disabled bool `json:"disabled"` // Allows to export prometheus in telemetry plugin PrometheusDisabled bool `json:"prometheus-disabled"` // Skip collecting some of the metrics: // runtime, memory, buffers, nodes, interfaces Skipped []string `json:"skipped"` }
Config file representation for telemetry plugin
type Deps ¶
type Deps struct { infra.PluginDeps ServiceLabel servicelabel.ReaderAPI VPP govppmux.API Prometheus prom.API GRPC grpc.Server HTTPHandlers rest.HTTPHandlers IfPlugin InterfaceIndexProvider }
Deps represents dependencies of Telemetry Plugin
type InterfaceIndexProvider ¶
type InterfaceIndexProvider interface { // GetInterfaceIndex gives read-only access to map with metadata of all configured // VPP interfaces. GetInterfaceIndex() ifaceidx.IfaceMetadataIndex }
type Option ¶
type Option func(*Plugin)
Option is a function that acts on a Plugin to inject Dependencies or configuration
type Plugin ¶
type Plugin struct { Deps // contains filtered or unexported fields }
Plugin registers Telemetry Plugin
func (*Plugin) PollStats ¶
func (s *Plugin) PollStats(req *configurator.PollStatsRequest, svr configurator.StatsPollerService_PollStatsServer) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.