monitoring

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const (
	MetricTypeMatrix = types.MetricTypeMatrix
	MetricTypeVector = types.MetricTypeVector
)

Variables

View Source
var NewNamedMetricQuery = types.NewNamedMetricQuery

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Cluster() types.Cluster
	Node(name, filter string) types.Node
	Workspace(name, filter string) types.Workspace
	Namespace(workspace, name, filter string) types.Namespace
	Workload(namespace, kind, filter string) types.Workload
	Pod(node, namespace, workloadKind, workloadName, name, filter string) types.Pod
	Container(namespace, pod, name, filter string) types.Container
	PVC(namespace, storageClass, name, filter string) types.PVC
	Component() types.Component
	Query(expr string) types.MetricQuery
	GetMetadata(namespace string) []Metadata
	GetMetricLabelSet(expr string, start, end time.Time) []map[string]string
}

Interface get all monitor metrics

func New

func New(options *Options) (Interface, error)

type Metadata

type Metadata = types.Metadata

type Metric

type Metric = types.Metric

type MetricData

type MetricData = types.MetricData

type MetricQuery

type MetricQuery = types.MetricQuery

type MetricValue

type MetricValue = types.MetricValue

type NamedMetricQuery

type NamedMetricQuery = types.NamedMetricQuery

type Object

type Object = types.Object

type Options

type Options struct {
	Endpoint string `json:"endpoint,omitempty" yaml:"endpoint"`
}

func NewPrometheusOptions

func NewPrometheusOptions() *Options

func (*Options) AddFlags

func (s *Options) AddFlags(fs *pflag.FlagSet, c *Options)

func (*Options) ApplyTo

func (s *Options) ApplyTo(options *Options)

func (*Options) Validate

func (s *Options) Validate() []error

type Point

type Point = types.Point

type Range

type Range = types.Range

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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