Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a factory for elasticsearch receiver.
Types ¶
type Config ¶
type Config struct { scraperhelper.ControllerConfig `mapstructure:",squash"` confighttp.ClientConfig `mapstructure:",squash"` // MetricsBuilderConfig defines which metrics/attributes to enable for the scraper metadata.MetricsBuilderConfig `mapstructure:",squash"` // Nodes defines the nodes to scrape. // See https://www.elastic.co/guide/en/elasticsearch/reference/7.9/cluster.html#cluster-nodes for which selectors may be used here. // If Nodes is empty, no nodes will be scraped. Nodes []string `mapstructure:"nodes"` // SkipClusterMetrics indicates whether cluster level metrics from /_cluster/* endpoints should be scraped or not. SkipClusterMetrics bool `mapstructure:"skip_cluster_metrics"` // Indices defines the indices to scrape. // See https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-stats.html#index-stats-api-path-params // for which names are viable. // If Indices is empty, no indices will be scraped. Indices []string `mapstructure:"indices"` // Username is the username used when making REST calls to elasticsearch. Must be specified if Password is. Not required. Username string `mapstructure:"username"` // Password is the password used when making REST calls to elasticsearch. Must be specified if Username is. Not required. Password configopaque.String `mapstructure:"password"` }
Config is the configuration for the elasticsearch receiver
Click to show internal directories.
Click to hide internal directories.