-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests/fix docs for nodes info API (#79274)
The docs for `GET _nodes/<node>/<metric>` omitted a couple of metrics and indicated that this API returned dynamic stats rather than static info. They also didn't mention that `_all` is a legal value, nor did it give a way to suppress all metrics even though this is possible. This commit adjusts the docs and adds tests to ensure that selecting metrics works as expected and to ensure that there is a future-proof legal way to suppress all metrics. Backport of #79223 Closes #79187 Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com> Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
- Loading branch information
1 parent
f6777d5
commit cc6a138
Showing
4 changed files
with
514 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.