type:Singlestat
Unit: short
metrics:
count(count(node_cpu_seconds_total{instance=~\"$node:$port\",job=~\"$job\"}) by (cpu))
node
type:Singlestat
Unit: bytes
metrics:
node_memory_MemTotal_bytes{instance=~\"$node:$port\",job=~\"$job\"}
3. Total SWAP 交換分區的大小 cat /proc/swapsui
type:Singlestat
Unit: bytes
metrics:
node_memory_SwapTotal_bytes{instance=~\"$node:$port\",job=~\"$job\"}
spa
type:Singlestat
Unit: bytes
metrics:
node_filesystem_size_bytes{instance=~\"$node:$port\",job=~\"$job\",mountpoint=\"/\",fstype!=\"rootfs\"}
進程
type:Singlestat
Unit: short
metrics:
node_load1{instance=~\"$node:$port\",job=~\"$job\"}
內存
type:Singlestat
Unit: seconds (s)
metrics:
node_time_seconds{instance=~\"$node:$port\",job=~\"$job\"} - node_boot_time_seconds{instance=~\"$node:$port\",job=~\"$job\"}
node_time_seconds 當前系統時間
node_boot_time_seconds 系統啓動時間資源