resource

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package resource contains models for resource metrics as returned by the K8s metrics APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {
	PodMetricsInfo podmetrics.MetricsInfo `json:"podMetricsInfo"`
	Requests       map[string]int64       `json:"requests"`
	ReadyPodCount  int64                  `json:"readyPodCount"`
	IgnoredPods    sets.String            `json:"ignoredPods"`
	MissingPods    sets.String            `json:"missingPods"`
	TotalPods      int                    `json:"totalPods"`
	Timestamp      time.Time              `json:"timestamp,omitempty"`
}

Metric (Resource) is a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics (the "pods" source).

Jump to

Keyboard shortcuts

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