Documentation
¶
Overview ¶
Package appmetrics builds the application-metrics collector manager for the full cAdvisor binary. It is injected into the lean library manager via manager.CollectorManagerFactory (the kubelet leaves that nil and runs no collectors). The collector implementations live in the root collector package rather than the library to keep the library lean.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
func NewManager(handler container.ContainerHandler, readFile func(string) ([]byte, error), countLimit int) (collector.CollectorManager, error)
NewManager builds a collector manager for a container, registering the application-metrics collectors declared via its labels. readFile reads a collector config file from inside the container. It satisfies the shape the library's manager.CollectorManagerFactory expects.
func SetHTTPClient ¶
func SetHTTPClient(certFile, keyFile string)
SetHTTPClient (re)configures the collector HTTP client. With a cert/key it adds client-certificate (mutual TLS) authentication to collector endpoints. Call once at startup (from main, after flag parsing) before any collectors are built; an invalid cert/key is fatal, matching upstream's startup check.
Types ¶
This section is empty.