news 2026/7/3 18:15:21

七、Grafana中导入显示node-exporter、mysql、nginx-vtx-exporter这些监控数据的仪表盘

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
七、Grafana中导入显示node-exporter、mysql、nginx-vtx-exporter这些监控数据的仪表盘

1.仪表盘插件的下载地址

Grafa-na dashboards | Grafana Labs

2.选择显示node-explorter的仪表盘

点击进入发现两种方式可以导入仪表盘

第一种,在联网的状态下,可以直接复制仪表盘的Id进行导入

在Grafana界面(http:192.168.40.180:3000)中点击

最后看到这些数据就说明成功了

第二种方式下载JSON文件导入

在Grafana界面(http:192.168.40.180:3000)中点击

同样看到下面的内容就表示成功了

mysql和nginx使用相同的方式添加仪表盘即可

注意:这里发现最新的nginx-vtx-exporter可能与Grafana中提供的json格式不符合,这里放上可以显示的nginx-vtx-exporter的版本和Grafana中提供的json文件

{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "4.0.2"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    }
  ],
  "description": "Show stats from the hnlq715/nginx-vts-exporter.",
  "editable": true,
  "gnetId": 2949,
  "graphTooltip": 0,
  "hideControls": false,
  "id": null,
  "links": [],
  "rows": [
    {
      "collapse": false,
      "height": "250px",
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_PROMETHEUS}",
          "fill": 1,
          "id": 1,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": true,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "span": 6,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "expr": "nginx_server_connections{instance=~\"$Instance\", status=~\"active|writing|reading|waiting\"}",
              "format": "time_series",
              "intervalFactor": 2,
              "legendFormat": "{ {status}}",
              "refId": "B"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Server Connections",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ]
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_PROMETHEUS}",
          "fill": 1,
          "id": 4,
          "legend": {

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/7/3 18:15:19

Dify 企业级部署与实战:从零构建 AI 应用开发平台

在实际企业级 AI 应用开发中,从零开始构建一个具备对话、知识库、工作流等核心能力的系统,往往需要投入大量精力在模型集成、API 管理、状态维护和前端交互上。Dify 作为一个开源的 LLM 应用开发平台,其核心价值在于将这些底层复杂性封装起来…

作者头像 李华
网站建设 2026/7/3 11:30:56

深度解析LCD图像转换引擎的实现机制与RLE压缩算法优化

深度解析LCD图像转换引擎的实现机制与RLE压缩算法优化 【免费下载链接】lcd-image-converter Tool to create bitmaps and fonts for embedded applications, v.2 项目地址: https://gitcode.com/gh_mirrors/lc/lcd-image-converter 在嵌入式系统开发领域,资…

作者头像 李华
网站建设 2026/7/4 5:24:05

零成本快速部署本地知识库:Ollama与Dify实战指南

想快速搭建一个属于自己的本地知识库,但又担心算力成本高、部署复杂?今天,我们就来手把手教你如何利用Ollama和Dify这两款神器,在10分钟内零成本部署一个功能强大的本地知识库问答系统。无需昂贵的GPU,也无需复杂的云服…

作者头像 李华
网站建设 2026/7/4 12:56:36

2小时本地部署Dify:从零构建AI Agent与企业级工作流实战

如果你是一名开发者,最近一定被各种“AI Agent”和“低代码AI应用平台”刷屏了。从ChatGPT的爆火到如今,一个核心问题始终困扰着我们:如何将大语言模型的能力,真正、稳定、可控地集成到自己的业务系统中?是继续在聊天框…

作者头像 李华
网站建设 2026/7/3 17:26:04

VMware Workstation Pro 中手动安装 Slackware 15 全流程指南

在虚拟化环境中运行 Linux 发行版是开发者、系统管理员和爱好者进行学习、测试和隔离开发的常见需求。VMware Workstation Pro 作为一款成熟的桌面虚拟化软件,提供了稳定且功能丰富的平台。Slackware Linux 作为现存最古老的 Linux 发行版之一,以其简洁、…

作者头像 李华
网站建设 2026/7/4 2:55:40

基于PyTorch与FastAPI的垃圾图像分类系统实战教程

在实际项目中,垃圾自动分类是一个典型的机器学习应用场景,它通过训练模型来识别图像或传感器数据,从而将垃圾自动归类到可回收物、厨余垃圾、有害垃圾和其他垃圾等类别。对于开发者而言,构建一个完整的垃圾自动分类系统&#xff0…

作者头像 李华