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. |
Click to show internal directories.
Click to hide internal directories.