Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Get Node watermark by API #17433

Open
tmanninger opened this issue Feb 24, 2025 · 1 comment
Open

[Feature Request] Get Node watermark by API #17433

tmanninger opened this issue Feb 24, 2025 · 1 comment
Labels
enhancement Enhancement or improvement to existing feature or request _No response_ untriaged

Comments

@tmanninger
Copy link

Is your feature request related to a problem? Please describe

Hi,

is there an API available the get the "current mark" status by node? (low, high, flood-stage)

If there is no API, I can create a Pull Request to add it to the Node- API.

Describe the solution you'd like

Something like

GET _nodes

{
  "_nodes": {
    "total": 4,
    "successful": 4,
    "failed": 0
  },
  "cluster_name": "ixo-prod-log-a",
  "nodes": {
    "J60tAmKeTH2UFE4w_hl7Tg": {
      "name":  "nodename!",
      ...
      "watermark_state: "low",
     ...
   }
}

Possible values: "ok (??), low, high, flood_stage"

Related component

No response

Describe alternatives you've considered

No response

Additional context

No response

@tmanninger tmanninger added enhancement Enhancement or improvement to existing feature or request untriaged labels Feb 24, 2025
@andrross
Copy link
Member

You can do:

GET /_cat/nodes?v&h=name,disk.avail,disk.used,disk.total,disk.used_percent

name      disk.avail disk.used disk.total disk.used_percent
node-1       168.9gb   291.4gb    460.4gb             63.31

It doesn't actually tell you the disk watermark stage (though the watermark settings can be fetched with GET /_cluster/settings?pretty&include_defaults) but it does provide you more details about actual storage availability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request _No response_ untriaged
Projects
None yet
Development

No branches or pull requests

2 participants