Documentation ¶
Index ¶
- type MetricsComputer
- func (mc *MetricsComputer) ComputeAvailabilityMetric(isAvailable bool) *metrics.Metric
- func (mc *MetricsComputer) ComputeBrokerMetrics(values map[string]string) []*metrics.Metric
- func (mc *MetricsComputer) ComputeCPUMetrics(values map[string]string) []*metrics.Metric
- func (mc *MetricsComputer) ComputeDiskMetrics(values map[string]string) []*metrics.Metric
- func (mc *MetricsComputer) ComputeGaleraMetrics(values map[string]string) []*metrics.Metric
- func (mc *MetricsComputer) ComputeGlobalMetrics(values map[string]string) []*metrics.Metric
- func (mc *MetricsComputer) ComputeIsFollowerMetric(isFollower bool) *metrics.Metric
- func (mc *MetricsComputer) ComputeLeaderFollowerMetrics(values map[string]string) []*metrics.Metric
- func (mc *MetricsComputer) ComputeMetricsFromMapping(metricValues map[string]string, ...) []*metrics.Metric
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
Click to show internal directories.
Click to hide internal directories.