惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
宝玉的分享
宝玉的分享
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
V
Visual Studio Blog
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
A
About on SuperTechFans
MyScale Blog
MyScale Blog
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
D
Docker
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
P
Proofpoint News Feed
L
LangChain Blog
Blog — PlanetScale
Blog — PlanetScale
The GitHub Blog
The GitHub Blog
博客园 - 【当耐特】
Martin Fowler
Martin Fowler

博客园 - 小y

HP-Socket压力测试例子,用恐怖如斯来形容。 经典分类算法KNN的研究 用python自己回测股票策略 怎么让大模型查询本地数据库输出结果(Dify+豆包) OpenClaw工作原理解析【建议背诵】 AiAgent工具之网页搜索 怎么在百度搜索中屏蔽csdn 使用C#调用Yolo26模型的ONNX ESP32 使用MicroPython编写代码实现远程控制LED灯 使用Razor模板引擎实现自动生成代码 ESP32开发环境下载、USB驱动安装 2026年最新年会抽奖小程序 PyAutoGUI库自动化测试脚本工具模拟键盘鼠标操作 性能卓越的开源时序数据库——QuestDB GitHub超 30000+ star , 超强大的开源项目Supervision DevExpress系列:dxValidationProvider和dxErrorProvider两种控件的用法和区别 实测:MySQL跑在Docker里会损失多少性能?寻找Docker优化点 用C# GDI编写粒子效果 动画图解嵌入式常见的通讯协议:SPI、I²C、UART、红外 C#中的MVVM框架 .net 9 中的WinUI3和MAUI有什么区别 Netty的高性能之道 一文搞定理解RPC CSS flex布局(弹性布局/弹性盒子) 为什么选择使用TypeScript?这篇文章讲透了
grafana+prometheus快速实现可视化大屏
小y · 2025-12-21 · via 博客园 - 小y

想实现如下数字可视化大屏吗?本文教你不用一行代码,快速搭建一套数字可视化大屏系统。

只需要使用grafana+prometheus+node_exporter.分分钟就可以搭建起来。

grafana5

Grafana官网:https://grafana.com/

grafana是一款开源的数据可视化看板工具,可连接几乎你能想到的所有数据源,并将其用可视化图表等方式展示出来。

prometheus普罗米修斯下载地址:https://prometheus.io/download/

一款开源的监控系统,是一个系统和服务的监控系统。周期性采集metrics指标,匹配规则和展示结果,以及触发某些条件的告警发送。

node_exporter下载地址:https://prometheus.io/download/

服务器(主要是linux)数据监控组件,用于prometheus

windows_exporter下载地址:https://github.com/prometheus-community/windows_exporter

windows下的node_exporter版本

步骤:

1.下载并安装grafana

参考:https://www.cnblogs.com/almco/p/18692589

2.下载并安装prometheus

这个比较简单,从https://prometheus.io/download/下载页面直接下载你需要的版本,

比如windows版本下prometheus-3.8.1.windows-amd64.zip,解压后双击根目录下的prometheus.exe文件即可启动prometheus

在本地浏览器访问http://localhost:9090/,能正常打开就代表成功。

3.下载安装windows_exporter插件。

从以下地址https://github.com/prometheus-community/windows_exporter直接下载release版本,

解压后就一个exe文件,双击即可启动。在浏览器访问http://localhost:9182/metrics  有数据返回则成功。

4.将winows_exporter插件配置到prometheus中

打开prometheus目录下的prometheus.yml配置文件,增加

在scrape_configs:下增加

- job_name: 'node_exporter'
    static_configs:
      - targets: ['localhost:9182']

完整scrape_configs节点内容如下:

scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: "prometheus"

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
      - targets: ["localhost:9090"]
       # The label name is added as a label `label_name=<label_value>` to any timeseries scraped from this config.
        labels:
          app: "prometheus"

  - job_name: 'node_exporter'
    static_configs:
      - targets: ['localhost:9182']

5.从grafana官网下载模板

模板地址:https://grafana.com/grafana/dashboards/

官方模板有几千个。搜索关键词 windows exporter 找出我们已安装的这个数据采集插件的模板,找一个数据源是prometheus的模板点击下载Json

2025-12-21 11 36 37

6.在grafana中添加prometheus数据源

2025-12-21 11 40 35

7.在grafana中导入下载的json模板,并关联prometheus数据源

2025-12-21 11 42 27

在导入界面中,选择刚我们从官网下载的模板,数据源选prometheus即可。

2025-12-21 11 43 52

导入完成后点保存并测试,即可看到实时数据。

选择自己喜欢的样式,将数据源改成自己的其他采集数据,即可得到超多好看的数据展示大屏。