Documentation
¶
Index ¶
Constants ¶
View Source
const ( CpuLabel = "cpu" MemoryLabel = "memory" )
Variables ¶
View Source
var Component = compogo.Component{ Name: "resource.metrics", Dependencies: compogo.Components{ &manager.Component, }, Init: compogo.StepFunc(func(container compogo.Container) error { return container.Provide(NewMetric) }), PreExecute: compogo.StepFunc(func(container compogo.Container) error { return container.Invoke(func(m *manager.Manager, metric *Metric) { m.OnChangeResource.Subscribe(metric.OnChangeResource) }) }), }
Component — компонент метрик ресурсов. Подписывается на изменения ресурсов и обновляет метрики.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.