elasticsearch

package
v0.0.0-...-5655933 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 15 Imported by: 0

README

elasticsearch

forked from telegraf/elasticsearch

改动

  • 不再处理json中的数组类型
  • 修改一些不合法的metric名称
  • 配置去掉cluster_stats_only_from_master
  • 调整默认配置,不采集每个索引的监控数据,nodestats不采集http数据

监控大盘

在该 README 文件同级目录下的 dashboard.json 可以直接导入夜莺使用

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elasticsearch

type Elasticsearch struct {
	config.PluginConfig
	Instances []*Instance `toml:"instances"`
}

func (*Elasticsearch) Clone

func (r *Elasticsearch) Clone() inputs.Input

func (*Elasticsearch) GetInstances

func (r *Elasticsearch) GetInstances() []inputs.Instance

func (*Elasticsearch) Name

func (c *Elasticsearch) Name() string

type Instance

type Instance struct {
	config.InstanceConfig

	Local                bool            `toml:"local"`
	Servers              []string        `toml:"servers"`
	HTTPTimeout          config.Duration `toml:"http_timeout"`
	ClusterHealth        bool            `toml:"cluster_health"`
	ClusterHealthLevel   string          `toml:"cluster_health_level"`
	ClusterStats         bool            `toml:"cluster_stats"`
	IndicesInclude       []string        `toml:"indices_include"`
	IndicesLevel         string          `toml:"indices_level"`
	NodeStats            []string        `toml:"node_stats"`
	Username             string          `toml:"username"`
	Password             string          `toml:"password"`
	NumMostRecentIndices int             `toml:"num_most_recent_indices"`

	tls.ClientConfig
	// contains filtered or unexported fields
}

func (*Instance) Gather

func (ins *Instance) Gather(slist *types.SampleList)

func (*Instance) Init

func (ins *Instance) Init() error

Jump to

Keyboard shortcuts

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