You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can find a helm chart in the prometheus-community charts repository at https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-elasticsearch-exporter
34
+
You can find a helm chart in the prometheus-community charts repository at <https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus-elasticsearch-exporter>
**NOTE:** The exporter fetches information from an ElasticSearch cluster on every scrape, therefore having a too short scrape interval can impose load on ES master nodes, particularly if you run with `--es.all` and `--es.indices`. We suggest you measure how long fetching `/_nodes/stats` and `/_all/_stats` takes for your ES cluster to determine whether your scraping interval is too short. As a last resort, you can scrape this exporter using a dedicated job with its own scraping interval.
43
+
**NOTE:** The exporter fetches information from an Elasticsearch cluster on every scrape, therefore having a too short scrape interval can impose load on ES master nodes, particularly if you run with `--es.all` and `--es.indices`. We suggest you measure how long fetching `/_nodes/stats` and `/_all/_stats` takes for your ES cluster to determine whether your scraping interval is too short. As a last resort, you can scrape this exporter using a dedicated job with its own scraping interval.
43
44
44
45
Below is the command line options summary:
46
+
45
47
```bash
46
48
elasticsearch_exporter --help
47
49
```
48
50
49
51
| Argument | Introduced in Version | Description | Default |
| es.uri | 1.0.2 | Address (host and port) of the Elasticsearch node we should connect to. This could be a local node (`localhost:9200`, for instance), or the address of a remote Elasticsearch server. When basic auth is needed, specify as: `<proto>://<user>:<password>@<host>:<port>`. E.G., `http://admin:pass@localhost:9200`. Special characters in the user credentials need to be URL-encoded. |http://localhost:9200|
53
+
| es.uri | 1.0.2 | Address (host and port) of the Elasticsearch node we should connect to. This could be a local node (`localhost:9200`, for instance), or the address of a remote Elasticsearch server. When basic auth is needed, specify as: `<proto>://<user>:<password>@<host>:<port>`. E.G., `http://admin:pass@localhost:9200`. Special characters in the user credentials need to be URL-encoded. |<http://localhost:9200>|
52
54
| es.all | 1.0.2 | If true, query stats for all nodes in the cluster, rather than just the node we connect to. | false |
53
55
| es.cluster_settings | 1.1.0rc1 | If true, query stats for cluster settings. | false |
54
56
| es.indices | 1.0.2 | If true, query stats for all indices in the cluster. | false |
@@ -58,6 +60,7 @@ elasticsearch_exporter --help
58
60
| es.shards | 1.0.3rc1 | If true, query stats for all indices in the cluster, including shard-level stats (implies `es.indices=true`). | false |
59
61
| es.snapshots | 1.0.4rc1 | If true, query stats for the cluster snapshots. | false |
60
62
| es.slm || If true, query stats for SLM. | false |
63
+
| es.data_stream || If true, query state for Data Steams. | false |
61
64
| es.timeout | 1.0.2 | Timeout for trying to get stats from Elasticsearch. (ex: 20s) | 5s |
62
65
| es.ca | 1.0.2 | Path to PEM file that contains trusted Certificate Authorities for the Elasticsearch connection. ||
63
66
| es.client-private-key | 1.0.2 | Path to PEM file that contains the private key for client auth when connecting to Elasticsearch. ||
@@ -66,6 +69,7 @@ elasticsearch_exporter --help
66
69
| es.ssl-skip-verify | 1.0.4rc1 | Skip SSL verification when connecting to Elasticsearch. | false |
67
70
| web.listen-address | 1.0.2 | Address to listen on for web interface and telemetry. | :9114 |
68
71
| web.telemetry-path | 1.0.2 | Path under which to expose metrics. | /metrics |
72
+
| aws.region | 1.5.0 | Region for AWS elasticsearch ||
69
73
| version | 1.0.2 | Show version info on stdout and exit. ||
70
74
71
75
Commandline parameters start with a single `-` for versions less than `1.1.0rc1`.
@@ -89,9 +93,11 @@ es.indices_settings | `indices` `monitor` (per index or `*`) |
89
93
es.shards | not sure if `indices` or `cluster``monitor` or both |
90
94
es.snapshots | `cluster:admin/snapshot/status` and `cluster:admin/repository/get` | [ES Forum Post](https://discuss.elastic.co/t/permissions-for-backup-user-with-x-pack/88057)
91
95
es.slm | `read_slm`
96
+
es.data_stream | `monitor` or `manage` (per index or `*`) |
92
97
93
98
Further Information
94
-
-[Build in Users](https://www.elastic.co/guide/en/elastic-stack-overview/7.3/built-in-users.html)
99
+
100
+
-[Built in Users](https://www.elastic.co/guide/en/elastic-stack-overview/7.3/built-in-users.html)
| elasticsearch_indices_merges_total | counter | 1 | Total merges
154
160
| elasticsearch_indices_merges_total_size_bytes_total | counter | 1 | Total merge size in bytes
@@ -172,6 +178,7 @@ Further Information
172
178
| elasticsearch_indices_segments_memory_bytes | gauge | 1 | Current memory size of segments in bytes
173
179
| elasticsearch_indices_settings_stats_read_only_indices | gauge | 1 | Count of indices that have read_only_allow_delete=true
174
180
| elasticsearch_indices_settings_total_fields | gauge | | Index setting value for index.mapping.total_fields.limit (total allowable mapped fields in a index)
181
+
| elasticsearch_indices_settings_replicas | gauge | | Index setting value for index.replicas
175
182
| elasticsearch_indices_shards_docs | gauge | 3 | Count of documents on this shard
176
183
| elasticsearch_indices_shards_docs_deleted | gauge | 3 | Count of deleted documents on each shard
177
184
| elasticsearch_indices_store_size_bytes | gauge | 1 | Current size of stored index data in bytes
| elasticsearch_data_stream_stats_up | gauge | 0 | Up metric for Data Stream collection
251
+
| elasticsearch_data_stream_stats_total_scrapes | counter | 0 | Total scrapes for Data Stream stats
252
+
| elasticsearch_data_stream_stats_json_parse_failures | counter | 0 | Number of parsing failures for Data Stream stats
253
+
| elasticsearch_data_stream_backing_indices_total | gauge | 1 | Number of backing indices for Data Stream
254
+
| elasticsearch_data_stream_store_size_bytes | gauge | 1 | Current size of data stream backing indices in bytes
244
255
245
256
### Alerts & Recording Rules
246
257
247
258
We provide examples for [Prometheus](http://prometheus.io)[alerts and recording rules](examples/prometheus/elasticsearch.rules) as well as an [Grafana](http://www.grafana.org)[Dashboard](examples/grafana/dashboard.json) and a [Kubernetes](http://kubernetes.io)[Deployment](examples/kubernetes/deployment.yml).
248
259
249
-
The example dashboard needs the [node_exporter](https://github.com/prometheus/node_exporter) installed. In order to select the nodes that belong to the ElasticSearch cluster, we rely on a label `cluster`.
260
+
The example dashboard needs the [node_exporter](https://github.com/prometheus/node_exporter) installed. In order to select the nodes that belong to the Elasticsearch cluster, we rely on a label `cluster`.
250
261
Depending on your setup, it can derived from the platform metadata:
251
262
252
263
For example on [GCE](https://cloud.google.com)
@@ -274,7 +285,7 @@ who transferred this repository to us in January 2017.
0 commit comments