nodes
GET _nodes/usage
返回所有节点的REST API调用情况。
GET _nodes/<node_filter>/usage
返回节点过滤器指定的节点的REST API调用情况。
返回结果主要为nodes中以节点id为键的各节点使用情况,包含三个信息:timestamp(nodes usage调用的时间戳)、since(记录使用情况的时间戳,相当于节点启动时间)、rest_actions(以REST API action名字为键,调用次数为值的映射)。如下"cat_action" : 3表示在1567327308487到1568907890119期间,Wz_munTiSTyHg38YVtv5YQ节点上,cat_action(org.elasticsearch.rest.action.cat.RestCatAction)被调用了3次。
{
"_nodes" : {
"total" : 1,
"successful" : 1,
"failed" : 0
},
"cluster_name" : "my-cluster",
"nodes" : {
"Wz_munTiSTyHg38YVtv5YQ" : {
"timestamp" : 1568907890119,
"since" : 1567327308487,
"rest_actions" : {
"nodes_usage_action" : 2,
"document_update_action" : 144,
"cat_action" : 3,
"nodes_info_action" : 139266,
"remote_cluster_info_action" : 1,
"get_index_template_action" : 6472,
"cat_alias_action" : 2,
"get_mapping_action" : 6469,
"cluster_reroute_action" : 18,
"get_indices_action" : 4,
"cat_count_action" : 8,
"cat_snapshot_action" : 28,
"cat_segments_action" : 11,
"monitoring_bulk" : 34994,
"create_snapshot_action" : 2,
"xpack_info_action" : 11676,
"cat_fielddata_action" : 6,
"document_get_action" : 35122,
"cluster_allocation_explain_action" : 68,
"put_repository_action" : 1,
"cluster_health_action" : 17,
"main_action" : 21,
"count_action" : 1,
"cat_templates_action" : 11,
"cat_tasks_action" : 13,
"cat_recovery_action" : 6,
"cluster_get_settings_action" : 30,
"cat_shards_action" : 22,
"pending_cluster_tasks_action" : 5,
"cat_repositories_action" : 2,
"document_index_action" : 19,
"cat_indices_action" : 14,
"cat_pending_cluster_tasks_action" : 2,
"msearch_action" : 53,
"cat_nodes_action" : 11,
"cluster_state_action" : 146,
"cluster_stats_action" : 24,
"put_index_template_action" : 9,
"search_action" : 254599,
"get_aliases_action" : 6469,
"list_tasks_action" : 9,
"cluster_update_settings_action" : 11,
"cat_threadpool_action" : 7
}
}
}
}