api

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package api defines the APIs.

Collector

Collector exports aggregated metrics to prometheus. It exposes a /metrics endpoint which is periodically scraped by prometheus.

The metrics exported by the collector may be configured using the MetricPrometheusCollector API which is provided to the collector via a local file (e.g. frequently as ConfigMap).

The collector gets metrics from the following locations:

  • Kubernetes objects
  • Pods (containers) requests / limits
  • ResourceQuota hard / used
  • Node allocatable / capacity
  • Sampler
  • Utilization
  • CPU throttling
  • OOM events

Sampler

Sampler runs on each node and periodically samples container stats.

  • CPU usage
  • Memory usage
  • CPU throttling
  • Memory OOM events

The sampler stores a collection of samples made over a sliding time window in memory, and serves aggregated values as results -- e.g. the max, p95, average values of the samples.

Directories

Path Synopsis
Package collectorcontrollerv1alpha1 defines the MetricsPrometheusCollector API.
Package collectorcontrollerv1alpha1 defines the MetricsPrometheusCollector API.
Package v1beta1 contains API Schema definitions for the usagemetricscollector.sigs.k8s.io API group +kubebuilder:object:generate=true +groupName=quotamanagement.usagemetricscollector.sigs.k8s.io +versionName=v1alpha1
Package v1beta1 contains API Schema definitions for the usagemetricscollector.sigs.k8s.io API group +kubebuilder:object:generate=true +groupName=quotamanagement.usagemetricscollector.sigs.k8s.io +versionName=v1alpha1
Package samplerserverv1alpha1 defines the MetricsNodeSampler API.
Package samplerserverv1alpha1 defines the MetricsNodeSampler API.

Jump to

Keyboard shortcuts

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