Commit graph

25 commits

Author SHA1 Message Date
István Zoltán Szabó
d90c0af3a6
[DOCS] Documents param for Health API. (#108296) 2024-05-06 12:23:17 +02:00
Niels Bauman
9a0eee603b
Add missing repository integrity docs for Health API (#105555)
Follow up on #104614
2024-02-19 15:51:32 +01:00
Joe Gallo
a354be7b69
Fix a couple of docs typos (#99028) 2023-08-30 09:01:34 -04:00
Pablo Alcantar Morales
1c8c4d80f7
Document the enhancements to ILM Health Indicator (#96980) 2023-06-27 10:54:36 +02:00
Pablo Alcantar Morales
253fe6325d
Add shards capacity troubleshooting guide (#95208) 2023-04-19 09:24:07 +02:00
Pablo Alcantar Morales
3b01d7fba1
add docs for shards' capacity health indicator (#94738) 2023-04-12 11:51:22 +02:00
Mary Gouseti
a7fdd3c036
GA the Health API under the url /_health_report (#92879) 2023-01-13 10:42:38 +01:00
Andrei Dan
0993c31eb7
GA the health API (#92420)
This marks the Health API as generally available.
2022-12-20 10:26:53 +00:00
Andrei Dan
3723af3ccd
[HealthAPI] Add size parameter that controls the number of affected resources returned (#92399)
This adds a `size` parameter that controls the maximum number of
returned affected resources. The parameter defaults to `1000`, must be
positive, and less than `10_000`
2022-12-16 16:15:01 +00:00
Andrei Dan
c8e08fd512
[HealthAPI] Rename explain to verbose (#91417)
This renames the explain Health API parameter to verbose.

We decided to rename explain because verbose is a more established
term in the industry for "opt-in to get more information" and allows for more
flexibility to control what exactly that extra information is (explain is already
pushing the limits of what it semantically represents as it's controlling both
the diagnosis insights and the raw details information)
2022-11-09 08:47:53 +00:00
Andrei Dan
b55f5fd77b
Rename the fields reported under details by the disk indicator (#90717)
Currently, we report the count of affected nodes and indices as part of
the disk indicator using a leaky abstraction. Namely we use the status
we assign to nodes internally to nodes based on their disk usage (red,
yellow, green, unknown).

However, these statuses don't have an explicit meaning outside the
implementation details e.g. a red node would probably convey it's a node
experiencing disk issues but not what kind

This proposes being explicit in what we return to our health API users
e.g.
```
"details": {
  "indices_with_readonly_block": 2,
  "nodes_with_enough_disk_space": 0,
  "nodes_with_unknown_disk_status": 0,
  "nodes_over_high_watermark": 0,
  "nodes_over_flood_watermark": 2
}
```
2022-10-10 11:30:03 +01:00
Mary Gouseti
bd30f5b713
Disk indicator show counts in details (#90189) 2022-09-22 11:55:20 +02:00
Keith Massey
2566cd1738
Adding DiskHealthIndicatorService (#90041)
Adds a new health indicator that reports problems if indexes have a block placed on them, or if
any nodes in the cluster are running low on disk space.
2022-09-20 15:27:26 -05:00
Keith Massey
8f591e72f8
Adding node name to cluster_formation section of stable master health API results (#89982) 2022-09-14 13:31:03 -05:00
Keith Massey
06cfa747be
Avoiding the use of dynamic map keys in the cluster_formation results of the stable master health indicator (#89842)
Part of the stable master history health indicator's results (the
`cluster_formation` section within `details`) used dynamic keys in a
map. This gets rid of that. So now instead of:

```
"details": {
                "current_master": {
                    "node_id": null,
                    "name": null
                },
                "recent_masters": [
                    {
                        "node_id": "31WBm9iTTRuMyWnBhWNUGA",
                        "name": "master-node-3"
                    }
                ],
                "cluster_formation": {
                    "31WBm9iTTRuMyWnBhWNUGA": "master not discovered or elected yet, an election requires at least 2 nodes with ids from [nADkAeGsT-q12gw89Ga1FA, 31WBm9iTTRuMyWnBhWNUGA, w8v48JvuRsuDCjwBn8KbRw], have only discovered non-quorum [{master-node-3}{31WBm9iTTRuMyWnBhWNUGA}{lJmGYiTPS_W7AJU7csG_gQ}{master-node-3}{127.0.0.1}{127.0.0.1:9301}{dm}]; discovery will continue using [127.0.0.1:9300, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9300, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{master-node-2}{nADkAeGsT-q12gw89Ga1FA}{logzEHuuTpqwJp-RWssBPw}{master-node-2}{127.0.0.1}{127.0.0.1:9300}{dm}, {master-node-3}{31WBm9iTTRuMyWnBhWNUGA}{lJmGYiTPS_W7AJU7csG_gQ}{master-node-3}{127.0.0.1}{127.0.0.1:9301}{dm}] from last-known cluster state; node term 39, last-accepted version 461 in term 39"
                }
}
```

We will have:

```
"details": {
                "current_master": {
                    "node_id": null,
                    "name": null
                },
                "recent_masters": [
                    {
                        "node_id": "31WBm9iTTRuMyWnBhWNUGA",
                        "name": "master-node-3"
                    }
                ],
                "cluster_formation": [
                    {
                        "node_id": "31WBm9iTTRuMyWnBhWNUGA",
                        "cluster_formation_message": "master not discovered or elected yet, an election requires at least 2 nodes with ids from [nADkAeGsT-q12gw89Ga1FA, 31WBm9iTTRuMyWnBhWNUGA, w8v48JvuRsuDCjwBn8KbRw], have only discovered non-quorum [{master-node-3}{31WBm9iTTRuMyWnBhWNUGA}{lJmGYiTPS_W7AJU7csG_gQ}{master-node-3}{127.0.0.1}{127.0.0.1:9301}{dm}]; discovery will continue using [127.0.0.1:9300, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9300, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{master-node-2}{nADkAeGsT-q12gw89Ga1FA}{logzEHuuTpqwJp-RWssBPw}{master-node-2}{127.0.0.1}{127.0.0.1:9300}{dm}, {master-node-3}{31WBm9iTTRuMyWnBhWNUGA}{lJmGYiTPS_W7AJU7csG_gQ}{master-node-3}{127.0.0.1}{127.0.0.1:9301}{dm}] from last-known cluster state; node term 39, last-accepted version 461 in term 39"
                    }
                ]
}
```
2022-09-08 06:22:36 +09:30
Andrei Dan
7edf5aa750
[DOCS] health api details descriptions (#89553) 2022-08-30 15:55:18 +01:00
Keith Massey
4b060a6046
Removing the notion of components from the health API (#88663)
This commit removes the notion of components from the health API. They are gone from being
a top-level field in the response, and indicators is promoted into its place.
2022-07-25 12:29:06 -05:00
Andrei Dan
da765ced7f
Remove help_url,rename summary to symptom, and user_actions to diagnosis (#88553)
Remove help_url,rename summary->symptom,user_actions->diagnosis
Separate the diagnosis `message` field in `cause` and `action`
Co-authored-by: Mary Gouseti <mgouseti@gmail.com>
2022-07-25 10:35:16 +01:00
Keith Massey
ed530891a7
Adding more master_is_stable details (#87977)
Adding information about new master_is_stable details fields
2022-06-28 09:21:21 -05:00
Andrei Dan
f48c4e7923
[DOCS]: replace instance_has_master with master_is_stable (#87799)
Co-authored-by: James Baiera <james.baiera@gmail.com>
2022-06-23 15:19:58 +01:00
James Baiera
577145bd25
Add indicator service details to health API documentation. (#87712)
This PR adds listings of all the current details that can be returned from the implemented 
Health Indicator Services. Response details are unique to each indicator and describe the 
state of the system that the indicator is basing its health decisions on.

Co-authored-by: Andrei Dan <andrei.dan@elastic.co>
2022-06-22 17:06:51 -04:00
James Baiera
b3ff079794
Improve the Health API documentation page with recent additions (#87139)
This PR overhauls the new health API documentation page, updating it with information on the new 
request formatting and response features.
2022-06-07 15:22:09 -04:00
Andrei Dan
21785c9a77
How-to docs for increasing the total number of shards per node (#86214)
Co-authored-by: Lee Hinman <dakrone@users.noreply.github.com>
Co-authored-by: Leaf-Lin <39002973+Leaf-Lin@users.noreply.github.com>
2022-05-10 09:13:27 +01:00
Keith Massey
6d975a6419
Health API explain query param (#86410)
The health API has a notion of details within each health indicator that is returned. These details can sometimes be
expensive to compute or transfer. This change allows a user to specify whether the details are generated and
returned. By default now all details are generated and returned (previously this was only the case if a component
was specified in the request). This behavior can be changed with the explain query param.
Closes #86215
2022-05-09 08:46:02 -05:00
Tim Brooks
ea96bfe5ac
Add elasticsearch health API (#83119)
Add an API to return information about Elasticsearch health status.

Relates to #83303.
2022-02-03 13:45:22 -07:00