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

推荐订阅源

I
Intezer
V
Vulnerabilities – Threatpost
Google Online Security Blog
Google Online Security Blog
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
AWS News Blog
AWS News Blog
G
GRAHAM CLULEY
P
Privacy & Cybersecurity Law Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
C
Cybersecurity and Infrastructure Security Agency CISA
N
News | PayPal Newsroom
T
Tenable Blog
Spread Privacy
Spread Privacy
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Secure Thoughts
P
Privacy International News Feed
IT之家
IT之家
Project Zero
Project Zero
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
大猫的无限游戏
大猫的无限游戏
博客园_首页
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
Martin Fowler
Martin Fowler
NISL@THU
NISL@THU
I
InfoQ
D
DataBreaches.Net
有赞技术团队
有赞技术团队
K
Kaspersky official blog
Security Latest
Security Latest
The Register - Security
The Register - Security
Hugging Face - Blog
Hugging Face - Blog
S
Security @ Cisco Blogs
P
Proofpoint News Feed
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
AI
AI
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
N
News and Events Feed by Topic

Grafana - 标签 - cywhat's blog

暂无文章

Linux部署grafana+node_exporter+prometheus监控
cywhat · 2022-01-20 · via Grafana - 标签 - cywhat's blog

1、下载安装Node_exporter

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#1.下载
wget https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz

#2.解压
tar -zvxf node_exporter-1.3.1.linux-amd64.tar.gz 

#3.重命名
mv node_exporter-1.3.1.linux-amd64.tar.gz  /usr/local/soft/node_exporter

#4.启动并常驻后台,默认端口为9100
/usr/local/soft/node_exporte/node_exporter &   

2.下载安装prometheus

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#1.下载
wget https://github.com/prometheus/prometheus/releases/download/v2.33.0-rc.1/prometheus-2.33.0-rc.1.linux-amd64.tar.gz


#2.解压
tar -zvxf prometheus-2.33.0-rc.1.linux-amd64.tar.gz

#3.重命名
mv prometheus-2.33.0-rc.1.linux-amd64.tar.gz /usr/local/soft/prometheus

#4.修改node节点端口
vim prometheus.yml

eg:
    - job_name: "node"
    static_configs:
      - targets: ["localhost:9100"]     #这里的locahost可以更改为其他机器的ip,但是监控机需要和被监控机互相通信
      

#5.启动并常驻后台,默认端口为9090
/usr/local/soft/prometheus/prometheus --config.file=/usr/local/soft/prometheus/prometheus.yml  &  

3.下载安装Grafana

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#1.下载
wget https://dl.grafana.com/enterprise/release/grafana-enterprise-8.3.4.linux-amd64.tar.gz

#2.解压
tar -zxvf grafana-enterprise-8.3.4.linux-amd64.tar.gz

#3.重命名
mv grafana-8.3.4 /usr/local/soft/grafana

#4.修改granafa端口
cd /usr/local/soft/grafana/conf

vim defaults.ini

eg:
    #根据自己需要修改
    http_port = 9200   
      

#5.启动并常驻后台,修改端口为9200  grafana-server
/usr/local/soft/grafana/bin/grafana-server &

4.web访问Grafana-url

PS:默认用户名密码都是admin,第一次登录需要修改密码

/img/img42.png

5.添加数据源

/img/img43.png

6.选择prometheus

/img/img44.png

7.输入prometheus-url&port

/img/img45.png

8.官网下载仪表盘

下载中文版node仪表盘

下载JSON包

/img/img46.png

9.上传JSON包到Grafana

/img/img47.png

/img/img48.png

9.1、配置匿名登录【可选】

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 1.编辑配置文件(进入到grafana/conf/目录下)
vim defaults.ini

# 2.修改选项
[auth.anonymous]
# 默认为false 改为true
enabled = true

# 3.保存
:wq

9.2、配置可嵌套【可选】

1
2
3
4
5
6
# 1.编辑配置文件(进入到grafana/conf/目录下)
vim defaults.ini

# 2.修改选项
# 默认为false 改为true
allow embedding= true

10.查看仪表监控图

/img/img49.png

关注一下再走吧

公众号 小程序

赞赏支持

微信打赏 支付宝打赏