metricbeat

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(globalConfig define.Config, taskConfig define.TaskConfig) define.Task

Types

type Gather

type Gather struct {
	tasks.BaseTask
	// contains filtered or unexported fields
}

func (*Gather) Run

func (g *Gather) Run(ctx context.Context, e chan<- define.Event)

type Tool

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

func (*Tool) Init

func (t *Tool) Init(mbConfig *configs.MetricBeatConfig, globalConf define.Config, taskConf define.TaskConfig) error

Init 初始化参数 处理配置文件中的 modules

func (*Tool) KeepOneDimension

func (t *Tool) KeepOneDimension(name string, data common.MapStr)

KeepOneDimension 只在测试模式 && Prometheus场景需要这么处理 指标名+维度字段名 作为唯一的key 不同维度值只保留一个,但是如果有多的维度名,那么需要保留

func (*Tool) Run

func (t *Tool) Run(ctx context.Context, e chan<- define.Event) error

Directories

Path Synopsis
Package include imports all Module and MetricSet packages so that they register their factories with the global registry.
Package include imports all Module and MetricSet packages so that they register their factories with the global registry.
module

Jump to

Keyboard shortcuts

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