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

Add paths to _cluster/stats API for metric filtering. #16425

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,80 @@
"description":"A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes"
}
}
},
{
"path":"/_cluster/stats/{metric}/nodes/{node_id}/",
"methods":[
"GET"
],
"parts":{
"metric":{
"type":"list",
"options":[
"_all",
"indices",
"os",
"process",
"jvm",
"fs",
"plugins",
"ingest",
"network_types",
"discovery_types",
"packaging_types"
],
"description":"Limit the information returned to the specified metrics"
},
"node_id":{
"type":"list",
"description":"A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes"
}
}
},
{
"path":"/_cluster/stats/{metric}/{index_metric}/nodes/{node_id}/",
"methods":[
"GET"
],
"parts":{
"metric":{
"type":"list",
"options":[
"_all",
"indices",
"os",
"process",
"jvm",
"fs",
"plugins",
"ingest",
"network_types",
"discovery_types",
"packaging_types"
],
"description":"Limit the information returned to the specified metrics"
},
"index_metric":{
"type":"list",
"options":[
"_all",
"shards",
"docs",
"store",
"fielddata",
"query_cache",
"completion",
"segments",
"mappings",
"analysis"
],
"description":"Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified."
},
"node_id":{
"type":"list",
"description":"A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes"
}
}
}
]
},
Expand Down
Loading