istio

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Pod       string = "Pod"
	Workload  string = "Workload"
	Namespace string = "Namespace"
)

Variables

This section is empty.

Functions

func GetObjectsReference

func GetObjectsReference(labels model.Metric) (source, destination *v1.ObjectReference, err error)

Return (src, dst) from the result labels

func GetType

func GetType(labels fmt.Stringer) (string, error)

func ObjectReferenceFromPodLabel

func ObjectReferenceFromPodLabel(value model.LabelValue) (*v1.ObjectReference, error)

Types

type Config

type Config struct {
	PrometheusURL    string             `yaml:"prometheusUrl"`
	NamespaceQueries prometheus.Queries `yaml:"namespaceQueries"`
	PodQueries       prometheus.Queries `yaml:"podQueries"`
	WorkloadQueries  prometheus.Queries `yaml:"workloadQueries"`
}

type Istio

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

func NewIstioProvider

func NewIstioProvider(config Config) (*Istio, error)

func (*Istio) GetEdgeMetrics

func (l *Istio) GetEdgeMetrics(ctx context.Context,
	query mesh.Query,
	interval *metrics.Interval,
	details *mesh.ResourceDetails) (*metrics.TrafficMetricsList, error)

func (*Istio) GetResourceMetrics

func (l *Istio) GetResourceMetrics(ctx context.Context,
	query mesh.Query,
	interval *metrics.Interval) (*metrics.TrafficMetricsList, error)

func (*Istio) GetSupportedResources

func (l *Istio) GetSupportedResources(ctx context.Context) (*metav1.APIResourceList, error)

Jump to

Keyboard shortcuts

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