metrics

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvgCPUUtil

type AvgCPUUtil struct {
	Timestamp time.Time
	Percent   float64
}

type AvgCPUUtils

type AvgCPUUtils []*AvgCPUUtil

func (AvgCPUUtils) After

func (a AvgCPUUtils) After(gte time.Time) AvgCPUUtils

func (AvgCPUUtils) AllGreaterThan

func (a AvgCPUUtils) AllGreaterThan(threshold float64) bool

func (AvgCPUUtils) AllLessThan

func (a AvgCPUUtils) AllLessThan(threshold float64) bool

type GetCPUUtilMetricsQueryResult

type GetCPUUtilMetricsQueryResult struct {
	Aggregations struct {
		Histogram struct {
			Buckets []struct {
				Key        int64 `json:"key"`
				AvgCPUUtil struct {
					Value float64 `json:"value"`
				} `json:"avg_cpu_util"`
			} `json:"buckets"`
		} `json:"Histogram"`
	} `json:"aggregations"`
}

type Provider

type Provider interface {
	GetCPUUtilMetrics(ctx context.Context, targetNodeNames []string, after time.Time) (AvgCPUUtils, error)
}

func NewMonitoringElasticsearchMetricsProvider

func NewMonitoringElasticsearchMetricsProvider(monitoringESClient *esv8.TypedClient) Provider

Jump to

Keyboard shortcuts

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