Skip to content

Commit 0863684

Browse files
feat: add support for _health_report (#1002)
* feat: add support for _health_report In elasticsearch 8.7 a new endpoint for cluster health has been added. See https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-health-report Signed-off-by: Richard Klose <richard.klose@wiit.cloud> * docs: update cardinality in README and release version Co-authored-by: Joe Adams <github@joeadams.io> Signed-off-by: Richard Klose <richard@klose.dev> --------- Signed-off-by: Richard Klose <richard.klose@wiit.cloud> Signed-off-by: Richard Klose <richard@klose.dev> Co-authored-by: Joe Adams <github@joeadams.io>
1 parent ff2a918 commit 0863684

File tree

4 files changed

+778
-0
lines changed

4 files changed

+778
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ elasticsearch_exporter --help
6060
| es.ilm | 1.6.0 | If true, query index lifecycle policies for indices in the cluster.
6161
| es.shards | 1.0.3rc1 | If true, query stats for all indices in the cluster, including shard-level stats (implies `es.indices=true`). | false |
6262
| collector.snapshots | 1.0.4rc1 | If true, query stats for the cluster snapshots. (As of v1.7.0, this flag has replaced "es.snapshots"). | false |
63+
| collector.health-report | 1.10.0 | If true, query the health report (requires elasticsearch 8.7.0 or later) | false |
6364
| es.slm | | If true, query stats for SLM. | false |
6465
| es.data_stream | | If true, query state for Data Steams. | false |
6566
| es.timeout | 1.0.2 | Timeout for trying to get stats from Elasticsearch. (ex: 20s) | 5s |
@@ -270,6 +271,31 @@ Further Information
270271
| elasticsearch_data_stream_stats_json_parse_failures | counter | 0 | Number of parsing failures for Data Stream stats |
271272
| elasticsearch_data_stream_backing_indices_total | gauge | 1 | Number of backing indices for Data Stream |
272273
| elasticsearch_data_stream_store_size_bytes | gauge | 1 | Current size of data stream backing indices in bytes |
274+
| elasticsearch_health_report_creating_primaries | gauge | 1 | The number of creating primary shards |
275+
| elasticsearch_health_report_creating_replicas | gauge | 1 | The number of creating replica shards |
276+
| elasticsearch_health_report_data_stream_lifecycle_status | gauge | 2 | Data stream lifecycle status |
277+
| elasticsearch_health_report_disk_status | gauge | 2 | disk status |
278+
| elasticsearch_health_report_ilm_policies | gauge | 1 | The number of ILM Policies |
279+
| elasticsearch_health_report_ilm_stagnating_indices | gauge | 1 | The number of stagnating indices |
280+
| elasticsearch_health_report_ilm_status | gauge | 2 | ILM status |
281+
| elasticsearch_health_report_initializing_primaries | gauge | 1 | The number of initializing primary shards |
282+
| elasticsearch_health_report_initializing_replicas | gauge | 1 | The number of initializing replica shards |
283+
| elasticsearch_health_report_master_is_stable_status | gauge | 2 | Master is stable status |
284+
| elasticsearch_health_report_max_shards_in_cluster_data | gauge | 1 | The number of maximum shards in a cluster |
285+
| elasticsearch_health_report_max_shards_in_cluster_frozen | gauge | 1 | The number of maximum frozen shards in a cluster |
286+
| elasticsearch_health_report_repository_integrity_status | gauge | 2 | Repository integrity status |
287+
| elasticsearch_health_report_restarting_primaries | gauge | 1 | The number of restarting primary shards |
288+
| elasticsearch_health_report_restarting_replicas | gauge | 1 | The number of restarting replica shards |
289+
| elasticsearch_health_report_shards_availabilty_status | gauge | 2 | Shards availabilty status |
290+
| elasticsearch_health_report_shards_capacity_status | gauge | 2 | Shards capacity status |
291+
| elasticsearch_health_report_slm_policies | gauge | 1 | The number of SLM policies |
292+
| elasticsearch_health_report_slm_status | gauge | 2 | SLM status |
293+
| elasticsearch_health_report_started_primaries | gauge | 1 | The number of started primary shards |
294+
| elasticsearch_health_report_started_replicas | gauge | 1 | The number of started replica shards |
295+
| elasticsearch_health_report_status | gauge | 2 | Overall cluster status |
296+
| elasticsearch_health_report_total_repositories | gauge | 1 | The number snapshot repositories |
297+
| elasticsearch_health_report_unassigned_primaries | gauge | 1 | The number of unassigned primary shards |
298+
| elasticsearch_health_report_unassigned_replicas | gauge | 1 | The number of unassigned replica shards |
273299

274300
### Alerts & Recording Rules
275301

0 commit comments

Comments
 (0)