Skip to content

Commit

Permalink
Add paths to _cluster/stats API for metric filering
Browse files Browse the repository at this point in the history
  • Loading branch information
Swetha Guptha committed Oct 22, 2024
1 parent e3db742 commit 964c60d
Showing 1 changed file with 74 additions and 0 deletions.
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

0 comments on commit 964c60d

Please sign in to comment.