// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples

[source, js]
----
const response = await client.nodes.stats({
  metric: "indices",
});
console.log(response);

const response1 = await client.nodes.stats({
  metric: "os,process",
});
console.log(response1);

const response2 = await client.nodes.stats({
  node_id: "10.0.0.1",
  metric: "process",
});
console.log(response2);
----
