当前位置: 首页 > news >正文

七、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": {

http://www.cnnetsun.cn/news/3077211.html

相关文章:

  • Dify 企业级部署与实战:从零构建 AI 应用开发平台
  • 深度解析LCD图像转换引擎的实现机制与RLE压缩算法优化
  • 零成本快速部署本地知识库:Ollama与Dify实战指南
  • 2小时本地部署Dify:从零构建AI Agent与企业级工作流实战
  • VMware Workstation Pro 中手动安装 Slackware 15 全流程指南
  • 基于PyTorch与FastAPI的垃圾图像分类系统实战教程
  • 数据分析实战:Excel、SQL、Python、Tableau四件套核心应用与项目思维
  • 前后端API签名验证实战:HMAC-SHA256在若依与uni-app中的防篡改实现
  • Python 入门:常用数据类型与程序结构详解(二)
  • Dify实战指南:零代码可视化构建企业级AI应用与RAG知识库
  • VMware虚拟机部署Kali Linux 2026:从零搭建汉化渗透测试环境
  • 280 个现成的 n8n 自动化模板,拿来就能用
  • 一个可以远程连接Linux并做自动化的mcp,可做运维或攻防
  • 新大一假期计划
  • 模块即协议:WSaiOS接口标准的架构学基础与认知操作系统解耦范式
  • AI 写芯片写了 18 小时:机房还在按「短跑」配散热吗?
  • Hermes Agent 保姆级教程:本地部署、核心概念与实战避坑指南
  • 巴别鸟生成下载Link实测:给AI工具和自动化脚本用的直连下载,开发者必知
  • AI 写简历,AI 筛简历,没人被录用
  • 如何快速构建轻量级多模态AI:3步实现模型融合的终极指南
  • 2026年毕业论文写作全流程指南:从选题到答辩的7个关键步骤
  • SOPS:密钥管理工具,22k Star
  • TestNG异常测试:从核心机制到实战应用,构建健壮自动化测试
  • AIGC率爆表怎么办?10款降AI率软件实测(含免费降ai率工具)真实避坑指南
  • 永川同传第1天收工,跟同传搭档吃这家火锅。味道还行,服务跟不上,我们的冰汤圆吃到最后才告知没有…服务员各忙各的,看起来都在忙,客人点单 想加菜 买单的时候又不见服务员了…味道真可以。
  • Switch case不再仅限int类型
  • 2026年桌面风扇推荐:三款不同功能定位机型,按需选择不踩坑
  • 2026年AI企业服务系统五大评测:乔掌门AI与同类品牌深度对比排名推荐
  • AI率高怎么降?10款降AIGC软件盘点,含免费方案
  • TMSpeech完整教程:Windows本地实时语音转文字的终极解决方案