Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Agent ¶
type Agent interface { GetRuntimeVersion(ctx context.Context) (*cri.VersionResponse, error) ListContainers(ctx context.Context) (*cri.ListContainersResponse, error) GetStatus(ctx context.Context) (*cri.StatusResponse, error) GetRuntimeConfig(ctx context.Context) (*cri.RuntimeConfigResponse, error) ListPods(ctx context.Context) (*cri.ListPodSandboxResponse, error) ListImages(ctx context.Context) (*cri.ListImagesResponse, error) FsInfo(ctx context.Context) (*cri.ImageFsInfoResponse, error) }
Agent defines the interface for an Agent.
type Metrics ¶
type Metrics struct {
// contains filtered or unexported fields
}
Metrics represents the metrics of the CRI agent. It implements prometheus.Collector.
func NewMetrics ¶
NewMetrics creates a new metrics collector.
func (*Metrics) Collect ¶
func (m *Metrics) Collect(ch chan<- prometheus.Metric)
Collect is called by the Prometheus registry when collecting metrics.
func (*Metrics) Describe ¶
func (m *Metrics) Describe(ch chan<- *prometheus.Desc)
Describe sends the super-set of all possible descriptors of metrics.
Click to show internal directories.
Click to hide internal directories.