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
Click to show internal directories.
Click to hide internal directories.