package collector
import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/google/cadvisor/collector"
Index ¶
Types ¶
type Collector ¶
type Collector interface { // Collect metrics from this collector. // Returns the next time this collector should be collected from. // Next collection time is always returned, even when an error occurs. // A collection time of zero means no more collection. Collect() (time.Time, []v2.Metric, error) // Name of this collector. Name() string }
Metric collector.
type CollectorManager ¶
type CollectorManager interface { // Register a collector. RegisterCollector(collector Collector) error // Collect from collectors that are ready and return the next time // at which a collector will be ready to collect from. // Next collection time is always returned, even when an error occurs. // A collection time of zero means no more collection. Collect() (time.Time, []v2.Metric, error) }
Manages and runs collectors.
func NewCollectorManager ¶
func NewCollectorManager() (CollectorManager, error)
Returns a new CollectorManager that is thread-compatible.
type FakeCollectorManager ¶
type FakeCollectorManager struct { }
func (*FakeCollectorManager) Collect ¶
func (*FakeCollectorManager) RegisterCollector ¶
func (fkm *FakeCollectorManager) RegisterCollector(collector Collector) error
Source Files ¶
collector_manager.go fakes.go types.go
- Version
- v0.19.0
- Published
- Jun 10, 2015
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 4 minutes ago –
Tools for package owners.