metrics_computer

package
v9.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsComputer

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

func NewMetricsComputer

func NewMetricsComputer(metricMappingConfig metrics.MetricMappingConfig) *MetricsComputer

func (*MetricsComputer) ComputeAvailabilityMetric

func (mc *MetricsComputer) ComputeAvailabilityMetric(isAvailable bool) *metrics.Metric

func (*MetricsComputer) ComputeBrokerMetrics

func (mc *MetricsComputer) ComputeBrokerMetrics(values map[string]string) []*metrics.Metric

func (*MetricsComputer) ComputeCPUMetrics

func (mc *MetricsComputer) ComputeCPUMetrics(values map[string]string) []*metrics.Metric

func (*MetricsComputer) ComputeDiskMetrics

func (mc *MetricsComputer) ComputeDiskMetrics(values map[string]string) []*metrics.Metric

func (*MetricsComputer) ComputeGaleraMetrics

func (mc *MetricsComputer) ComputeGaleraMetrics(values map[string]string) []*metrics.Metric

func (*MetricsComputer) ComputeGlobalMetrics

func (mc *MetricsComputer) ComputeGlobalMetrics(values map[string]string) []*metrics.Metric

func (*MetricsComputer) ComputeIsFollowerMetric

func (mc *MetricsComputer) ComputeIsFollowerMetric(isFollower bool) *metrics.Metric

func (*MetricsComputer) ComputeLeaderFollowerMetrics

func (mc *MetricsComputer) ComputeLeaderFollowerMetrics(values map[string]string) []*metrics.Metric

func (*MetricsComputer) ComputeMetricsFromMapping

func (mc *MetricsComputer) ComputeMetricsFromMapping(metricValues map[string]string, mappingConfig map[string]metrics.MetricDefinition) []*metrics.Metric

Jump to

Keyboard shortcuts

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