---
title: elasticsearch_exporter_config
aliases:
- ../../../configuration/integrations/elasticsearch-exporter-config/
---
elasticsearch_exporter_config
The elasticsearch_exporter_config
block configures the elasticsearch_exporter
integration, which is an embedded version of elasticsearch_exporter
. This allows for the collection of metrics from ElasticSearch servers.
Note that currently, an Agent can only collect metrics from a single ElasticSearch server. However, the exporter is able to collect the metrics from all nodes through that server configured.
We strongly recommend that you configure a separate user for the Agent, and give it only the strictly mandatory security privileges necessary for monitoring your node, as per the official documentation.
Full reference of options:
[enabled: <boolean> | default = false]
[instance: <string>]
[scrape_integration: <boolean> | default = <integrations_config.scrape_integrations>]
[scrape_interval: <duration> | default = <global_config.scrape_interval>]
[scrape_timeout: <duration> | default = <global_config.scrape_timeout>]
relabel_configs:
[- <relabel_config> ... ]
metric_relabel_configs:
[ - <relabel_config> ... ]
[wal_truncate_frequency: <duration> | default = "60m"]
[ address: <string> | default = "http://localhost:9200" ]
[ timeout: <duration> | default = "5s" ]
[ all: <boolean> ]
[ node: <boolean> ]
[ indices: <boolean> ]
[ indices_settings: <boolean> ]
[ cluster_settings: <boolean> ]
[ shards: <boolean> ]
[ snapshots: <boolean> ]
[ clusterinfo_interval: <duration> | default = "5m" ]
[ ca: <string> ]
[ client_private_key: <string> ]
[ client_cert: <string> ]
[ ssl_skip_verify: <boolean> ]
[ aliases: <boolean> ]
[ data_stream: <boolean> ]
[ slm: <boolean> ]