Node monitor

Get statistics of node

Introduction

List statistics of node within a specified time interval per page

URI

GET /admin-api/log_server/node_monitor/{id}/system

URI parameters

  • id

    type: integer

    required: yes

    description: node ID

  • start_utime

    type: integer

    required: no

    description: the specified start timestamp

  • end_utime

    type: integer

    required: no

    description: the specified end timestamp

  • page

    type: integer

    required: yes

    description: page number of the results to fetch

  • page_size

    type: integer

    required: no

    description: results per page

  • step

    type: integer

    required: no

    description: the number of seconds between two adjacent times, default is 60 seconds (for example, if the start time is 8:00 am on January 1, 2021, the end time is 8:30 am on January 1, 2021, and the number of time interval is set to 60 seconds, the data at 8:00 am, 8:01 am, 8:02 am, etc. until 8:30 am will be fetched, if the time interval is set to 120 seconds, the data at 8:00 am, 8:02 am, 8:04 am, etc. until 8:30 am will be fetched)

Request example

Shell

curl https://{admin-site}/admin-api/log_server/node_monitor/59/system?start_utime=1615153920&end_utime=&pagesize=30&step=60&page=1

Response example

Status: 200 OK
{
  "time": 1615155764,
  "status": 0,
  "data": {
    "meta": {
      "count": 1
    },
    "data": [{
      "system_CPU_core": 1,
      "system_net_drop_in": 0,
      "system_net_bytes_recv": 36301735,
      "max_id": 17850267,
      "system_net_err_out": 0,
      "node_utime": 1615155711,
      "system_net_packets_sent": 79363,
      "system_CPU_percent": 13,
      "system_swap_total": 5368705024,
      "system_CPU_loadavg_15m": 0.19,
      "system_net_err_in": 0,
      "system_CPU_loadavg_5m": 0.27,
      "system_net_packets_recv": 97331,
      "node_id": 59,
      "system_swap_used": 2322432,
      "system_CPU_loadavg_1m": 0.5,
      "system_net_drop_out": 0,
      "system_memory_used": 310571008,
      "system_net_bytes_sent": 36777628,
      "system_memory_total": 1039097856
    }]
  }
}

Get process information of node

Introduction

List process data of node within a specified time interval per page

URI

GET /admin-api/log_server/node_monitor/{id}/process

URI parameters

  • id

    type: integer

    required: yes

    description: node ID

  • start_utime

    type: integer

    required: no

    description: the specified start timestamp

  • end_utime

    type: integer

    required: no

    description: the specified end timestamp

  • page

    type: integer

    required: yes

    description: page number of the results to fetch

  • page_size

    type: integer

    required: no

    description: results per page

  • step

    type: integer

    required: no

    description: the number of seconds between two adjacent times, default is 60 seconds (for example, if the start time is 8:00 am on January 1, 2021, the end time is 8:30 am on January 1, 2021, and the number of time interval is set to 60 seconds, the data at 8:00 am, 8:01 am, 8:02 am, etc. until 8:30 am will be fetched, if the time interval is set to 120 seconds, the data at 8:00 am, 8:02 am, 8:04 am, etc. until 8:30 am will be fetched)

Request example

Shell

curl https://{admin-site}/admin-api/log_server/node_monitor/59/process?start_utime=1615154820&end_utime=&step=60&pagesize=480&page=1

Default response

Status: 200 OK
{
  "time": 1615156654,
  "status": 0,
  "data": {
    "meta": {
      "count": 1
    },
    "data": [{
      "_monitor_id": 17850447,
      "pid": 10446,
      "node_utime": 1615156612,
      "max_id": 38377452,
      "node_id": 59,
      "memory_res_in_bytes": 119128064,
      "process_type": "worker",
      "lua_memory_size": 32932639,
      "CPU_percent": 5,
      "memory_virt_in_bytes": 5286957056
    }]
  }
}

Get coredump information of node

Introduction

List coredump data of node within a specified time interval per page

URI

GET /admin-api/log_server/node_monitor/{id}/coredumps

URI parameters

  • id

    type: integer

    required: yes

    description: node ID

  • start_utime

    type: integer

    required: no

    description: the specified start timestamp

  • end_utime

    type: integer

    required: no

    description: the specified start timestamp

  • page

    type: integer

    required: yes

    description: page number of the results to fetch

  • page_size

    type: integer

    required: no

    description: results per page

Request example

Shell

curl https://{admin-site}/admin-api/log_server/node_monitor/59/coredumps?start_utime=1615155000&end_utime=&pagesize=30&page=1

Response example

Status: 200 OK
{
  "status": 0,
  "data": {
    "data": [{
      "node_utime": 1517394883,
      "id": 1,
      "core_utime": 9489845,
      "node_id": 2
    }],
    "meta": {
      "count": 1
    }
  }
}