appmetrics

package
v0.0.0-...-6a0c4f2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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