Prometheus + Grafana 快速上手

本文介绍了如何快速上手Prometheus和Grafana进行系统监控,包括安装Node Exporter和DCGM Exporter收集CPU、GPU、内存和IO等数据,以及设置Prometheus服务器和Grafana仪表盘,实现对主机状态的全面监控。
摘要由CSDN通过智能技术生成

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值