elasticsearch

package
v0.37.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultArguments = Arguments{
	Address:                   "http://localhost:9200",
	Timeout:                   5 * time.Second,
	Node:                      "_local",
	ExportClusterInfoInterval: 5 * time.Minute,
	IncludeAliases:            true,
}

DefaultArguments holds non-zero default options for Arguments when it is unmarshaled from river.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Address                   string        `river:"address,attr,optional"`
	Timeout                   time.Duration `river:"timeout,attr,optional"`
	AllNodes                  bool          `river:"all,attr,optional"`
	Node                      string        `river:"node,attr,optional"`
	ExportIndices             bool          `river:"indices,attr,optional"`
	ExportIndicesSettings     bool          `river:"indices_settings,attr,optional"`
	ExportClusterSettings     bool          `river:"cluster_settings,attr,optional"`
	ExportShards              bool          `river:"shards,attr,optional"`
	IncludeAliases            bool          `river:"aliases,attr,optional"`
	ExportSnapshots           bool          `river:"snapshots,attr,optional"`
	ExportClusterInfoInterval time.Duration `river:"clusterinfo_interval,attr,optional"`
	CA                        string        `river:"ca,attr,optional"`
	ClientPrivateKey          string        `river:"client_private_key,attr,optional"`
	ClientCert                string        `river:"client_cert,attr,optional"`
	InsecureSkipVerify        bool          `river:"ssl_skip_verify,attr,optional"`
	ExportDataStreams         bool          `river:"data_stream,attr,optional"`
	ExportSLM                 bool          `river:"slm,attr,optional"`
}

func (*Arguments) Convert

func (a *Arguments) Convert() *elasticsearch_exporter.Config

func (*Arguments) SetToDefault

func (a *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

Jump to

Keyboard shortcuts

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