aggr

package
v4.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KafkaProducer producer

Functions

func Init

func Init(aggr AggrSection)

func InitKakfa

func InitKakfa(aggr AggrSection)

func SendToAggr

func SendToAggr(items []*dataobj.MetricValue) error

SendToCentralAggr 1. 判断一组points是否应该发往中心进行聚合

Types

type AggrSection

type AggrSection struct {
	Enabled           bool     `yaml:"enabled"`
	Lateness          int      `yaml:"lateness"`
	ApiPath           string   `yaml:"apiPath"`
	ApiTimeout        int      `yaml:"apiTimeout"`
	UpdateInterval    int      `yaml:"updateInterval"`
	KafkaAddrs        []string `yaml:"kafkaAddrs"`
	KafkaAggrInTopic  string   `yaml:"kafkaAggrInTopic"`
	KafkaAggrOutTopic string   `yaml:"kafkaAggrOutTopic"`
}
var AggrConfig AggrSection

Jump to

Keyboard shortcuts

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