<commit_before>[[cluster-nodes-usage]]
== Nodes Feature Usage

[float]
=== Nodes usage

The cluster nodes usage API allows to retrieve information on the usage
of features for each node.

[source,js]
--------------------------------------------------
GET _nodes/nodeId1,nodeId2/usage
GET _nodes/usage
--------------------------------------------------
// CONSOLE
// TEST[setup:node]
// TEST[s/nodeId1,nodeId2/\$node_name/]

The first command retrieves usage of all the nodes in the cluster. The
second command selectively retrieves nodes usage of only `nodeId1` and
`nodeId2`. All the nodes selective options are explained
<<cluster-nodes,here>>.
<commit_msg>[Docs] Fix order of nodes usage example  (#27611)<commit_after>[[cluster-nodes-usage]]
== Nodes Feature Usage

[float]
=== Nodes usage

The cluster nodes usage API allows to retrieve information on the usage
of features for each node.

[source,js]
--------------------------------------------------
GET _nodes/usage
GET _nodes/nodeId1,nodeId2/usage
--------------------------------------------------
// CONSOLE
// TEST[setup:node]
// TEST[s/nodeId1,nodeId2/\$node_name/]

The first command retrieves usage of all the nodes in the cluster. The
second command selectively retrieves nodes usage of only `nodeId1` and
`nodeId2`. All the nodes selective options are explained
<<cluster-nodes,here>>.

{'fraction_non_alphanumeric': 0.2311669128508124, 'fraction_numerical': 0.012555391432791729, 'mean_word_length': 2.3959899749373434, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3859539', 'n_tokens_mistral': 369, 'n_tokens_neox': 356, 'n_words': 135}