elasticsearch

package
v1.2.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 7 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 Alloy.

Functions

This section is empty.

Types

type Arguments

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

func (*Arguments) Convert

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

func (*Arguments) SetToDefault

func (a *Arguments) SetToDefault()

SetToDefault implements syntax.Defaulter.

Jump to

Keyboard shortcuts

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