prometheuscontroller

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContainer

func GetContainer(sp *serviceprovider.Container, podId string, containerId string, rs RangeSetting) (entity.ContainerMetrics, error)

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 ListContainerName added in v0.1.7

func ListContainerName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)

ListContainerName will list container name

func ListControllerName added in v0.1.7

func ListControllerName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)

ListControllerName will list controller name

func ListNodeNICs

ListNodeNICs will list node's NICs

func ListNodeName added in v0.1.7

func ListNodeName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)

ListNodeName will list node name

func ListPodName added in v0.1.7

func ListPodName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)

ListPodName will list pod name

func ListServiceName added in v0.1.7

func ListServiceName(sp *serviceprovider.Container, queryLabels map[string]string) ([]string, error)

ListServiceName will list service name

Types

type Expression

type Expression struct {
	Metrics     []string          `json:"metrics"`
	QueryLabels map[string]string `json:"queryLabels"`
	SumByLabels []string          `json:"sumByLabels"`
}

Expression is the structure for expression

type RangeSetting added in v0.2.2

type RangeSetting struct {
	Interval   time.Duration // minutes
	Resolution time.Duration // seconds
	Rate       time.Duration // minutes
}

Jump to

Keyboard shortcuts

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