prometheuscontroller

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2018 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainer

GetContainer will get container

func GetController

GetController willl get container

func GetNode

GetNode will get node metrics

func GetPod

GetPod will get pod

func GetService

GetService will get service by serviceprovider.Container

func ListNodeNICs

ListNodeNICs will list node's NICs

func ListResource

func ListResource(sp *serviceprovider.Container, resource model.LabelName, expression Expression) ([]string, error)

ListResource will list resource

Types

type Expression

type Expression struct {
	Metrics     []string          `json:"metrics"`
	QueryLabels map[string]string `json:"queryLabels"`
	SumBy       []string          `json:"sumBy"`
	Value       *int              `json:"value"`
}

Expression is the structure for expression

Jump to

Keyboard shortcuts

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