Prometheus + Grafana 快速上手,监控主机的 CPU, GPU, MEM, IO 等状态。
前提
客户端
Node Exporter
用于采集 UNIX 内核主机的数据,这里下载并解压:
wget https://github.com/prometheus/node_exporter/releases/download/v1.1.2/node_exporter-1.1.2.linux-amd64.tar.gz
tar xvfz node_exporter-1.1.2.linux-amd64.tar.gz
cd node_exporter-1.1.2.linux-amd64
nohup ./node_exporter &
查看数据:
$ curl http://localhost:9100/metrics
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{
quantile="0"} 0
go_gc_duration_seconds{