metrics

package
v1.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func New

func New() *Metrics

func (*Metrics) GetSystemMetrics

func (m *Metrics) GetSystemMetrics() api.ResourceMetrics

We choose percents over quantities since those values remain constant for an autoscaler when you change your instance type. Thus, if you vertically scale your application to double the CPU count, but keep the autoscaling values the same, you should still scale at the right place.

At this time, We don't use cpuUtilization (including steal) like AWS reports in cloudWatch since steal values dont come through in Azure (hyper-v).

func (*Metrics) GetUnitMetrics

func (m *Metrics) GetUnitMetrics(name string) api.ResourceMetrics

Jump to

Keyboard shortcuts

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