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

推荐订阅源

D
DataBreaches.Net
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
博客园 - 聂微东
罗磊的独立博客
W
WeLiveSecurity
博客园_首页
Scott Helme
Scott Helme
V
Visual Studio Blog
T
The Exploit Database - CXSecurity.com
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
Latest news
Latest news
L
Lohrmann on Cybersecurity
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
About on SuperTechFans
F
Full Disclosure
Y
Y Combinator Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
博客园 - 司徒正美
博客园 - Franky
C
CXSECURITY Database RSS Feed - CXSecurity.com
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
阮一峰的网络日志
阮一峰的网络日志
S
Schneier on Security
雷峰网
雷峰网
博客园 - 【当耐特】
P
Privacy International News Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
T
Tor Project blog
V
V2EX
爱范儿
爱范儿
C
Check Point Blog
T
Threatpost
Project Zero
Project Zero
量子位
V
Vulnerabilities – Threatpost
Know Your Adversary
Know Your Adversary
I
Intezer
G
GRAHAM CLULEY
P
Privacy & Cybersecurity Law Blog
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

博客园 - 不懂123

kafka添加用户管理认证 nodejs升级管理 elastic定时清除索引数据 sftp集成设置 kafka3.9集群部署 nginx扩展编译模块 rancher kafka部署 JumpServer使用示例 rancher kafka多监听配置 jenkins远程动态打包镜像 docker镜像仓库清理迁移 elastic单机多节点集群搭建 fastdfs编译升降版本 rancher服务启动异常 linux使用ssh免密连接windows主机 jenkins pipeline搭建 docker跨平台构建镜像 fastdfs系统异常 mongodb集群用户管理
监控系统搭建集成实例
不懂123 · 2025-10-23 · via 博客园 - 不懂123

dashboard无法导入

           json文件无法上传到跳板机,同时拷贝数据的长度也受到了限制

            QQ_1761205497072

           QQ_1761205547861

 服务配置

[root]# cat node.ini 
[program:nodeexporter]
command=/app/taishi/monitor/node_exporter-1.9.1.linux-amd64/node_exporter
environment=PATH="/app/taishi/bin:%(ENV_PATH)s"
priority=10
process_name=%(program_name)s
user=cloudadmin
redirect_stderr=true
stdout_logfile_maxbytes=1000MB
stdout_logfile_backups=10
stdout_logfile=/app/taishi/logs/node_supervisord.log

View Code

[root]# cat elasticexporter.ini 
[program:esexporter]
command=/app/taishi/monitor/elasticsearch_exporter --es.all --es.indices --es.cluster_settings --es.indices_settings --es.shards --es.snapshots --es.timeout=10s --web.listen-address=":9114"  --web.telemetry-path="/metrics" --es.ssl-skip-verify --es.uri="https://elastic:Transfar@172.16.27.21:9200"
environment=PATH="/app/taishi/bin:%(ENV_PATH)s"
priority=10
process_name=%(program_name)s
user=cloudadmin
redirect_stderr=true
stdout_logfile_maxbytes=1000MB
stdout_logfile_backups=10
stdout_logfile=/app/taishi/logs/elastic_supervisord.log

esexporter.ini

     QQ_1761205835603

 数据异常处理

           QQ_1761205909484

            1.清空pushgateway的数据目录并重启服务

            2.清空prometheus的数据目录并重启服务

            3.稍微等待一段时间并重新打开监控页面

         QQ_1761206052245

大屏集成到第三方系统

        QQ_1761206232800

        修改数据库配置数据

mysql -h172.163.27.211 -P6306 -utaishi -p222222
select vals from sys_config where id='1b94681dae7011eb8afd000c2935c408';
update sys_config set vals="https://172.16.27.214:1688/devops/monitor/d/9CWBz0bik/1-node-exporter-for-prometheus-dashboard-cn-v20201010?orgId=1&refresh=1m&kiosk=tv" where id='1b94681dae7011eb8afd000c2935c408';

数据库操作脚本

      修改完数据库后重新打开第三方系统页面通过菜单即可打开嵌套的监控大屏

 命令行导入dashboard

      测试简单的导入dashboard

cat > test_dashboard.json << 'EOF'
{
  "dashboard": {
    "title": "Test Dashboard",
    "panels": []
  },
  "overwrite": true
}
EOF

curl -X POST -H "Content-Type: application/json" -u "admin:admin" -d @test_dashboard.json http://192.168.30.207:3000/api/dashboards/db

测试导入

     现有的dashboard导入问题

       QQ_1761720111702

      修改dashboard.json格式

          QQ_1761720202908

        QQ_1761720266176

           curl -X POST -H "Content-Type: application/json" -u "admin:admin" -d @node.json http://192.168.30.207:3000/api/dashboards/db

            QQ_1761721836414

        导入结束