elasticsearch7.x集群API之nodes usage

 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
      }
    }
  }
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值