metacacheplugin

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// PluginNameMetaCache is the name of MetaCachePlugin
	PluginNameMetaCache = "metacache-plugin"

	// MetricsNamePlugMetaCacheHeartbeat is the heartbeat metrics of metacache plugin
	MetricsNamePlugMetaCacheHeartbeat = "plugin_metacache_heartbeat"
)

Variables

This section is empty.

Functions

func NewMetaCachePlugin

func NewMetaCachePlugin(conf *config.Configuration, _ interface{}, emitterPool metricspool.MetricsEmitterPool,
	metaServer *metaserver.MetaServer, metaCache metacache.MetaCache) (plugin.SysAdvisorPlugin, error)

NewMetaCachePlugin creates a metacache plugin with the specified config

Types

type MetaCachePlugin

type MetaCachePlugin struct {
	// contains filtered or unexported fields
}

MetaCachePlugin collects pod info from kubelet

func (*MetaCachePlugin) Init

func (mcp *MetaCachePlugin) Init() error

Init initializes the metacache plugin

func (*MetaCachePlugin) Name

func (mcp *MetaCachePlugin) Name() string

Name returns the name of metacache

func (*MetaCachePlugin) Run

func (mcp *MetaCachePlugin) Run(ctx context.Context)

Run starts the metacache plugin

Jump to

Keyboard shortcuts

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