1. 从官网选择Prometheus版本进行下载
官网地址 https://github.com/prometheus/prometheus/releases/
2. 实验安排
在主机192.168.153.137上安装prometheus监控192.168.153.138上的mysql服务和主机状态
3. 上传软件包到137服务器并配置
3.1 将软件包解压到 /usr/local 目录下
tar xzf prometheus-2.24.1.linux-amd64.tar.gz -C /usr/local/
3.2 给目录创建软链接
ln -s /usr/local/prometheus-2.24.1.linux-amd64/ /usr/local/prometheus
3.3 切换到目录下
cd /usr/local/prometheus
3.4 修改配置文件 prometheus.yml
,配置要监控的项
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'] #监控Linux主机状态 - job_name: 'linux' static_configs: - targets: ['192.168.153.138:9100'] #监控mysql服务状态 - job_name: 'mysql' static_configs: - targets: ['192.168.153.138:9104']
3.5 启动promethus服务
./prometheus --config.file=prometheus.yml
3.6 浏览器输入 IP:9090
查看
在Status->Targets
页面下,我们可以看到我们配置的两个Target,它们的State为DOWN。
4. 配置138主机 4.1 下载exporter
下载地址 https://github.com/prometheus/node_exporter/releases
4.2 将软件包解压到 /usr/local 目录下
tar xzf node_exporter-1.0.1.linux-amd64.tar.gz -C /usr/local/
4.3 启动exporter
nohup /usr/local/node_exporter-1.0.1.linux-amd64/node_exporter &
4.4 下载mysqld_exporter
下载地址 https://github.com/prometheus/mysqld_exporter/releases
4.5 将软件包解压到 /usr/local 目录下
tar xzf mysqld_exporter-0.12.1.linux-amd64.tar.gz -C /usr/local/
4.6 数据库给mysqld_exporter授权
[root@host-138 ~]# mysql Welcome to the MariaDB monitor. Commands end with ; or \g. MariaDB [(none)]> GRANT REPLICATION CLIENT,PROCESS ON *.* TO 'mysql_monitor'@'localhost' identified by 'mysql_monitor'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> GRANT SELECT ON *.* TO 'mysql_monitor'@'localhost'; Query OK, 0 rows affected (0.00 sec)
4.7 创建 .my.cnf
配置文件
vim /usr/local/mysqld_exporter-0.12.1.linux-amd64/.my.cnf
内容为:
[client] user=mysql_monitor password=mysql_monitor
4.8 运行mysqld_exporter服务
nohup /usr/local/mysqld_exporter-0.12.1.linux-amd64/mysqld_exporter --config.my-cnf="/usr/local/mysqld_exporter-0.12.1.linux-amd64/.my.cnf" &
5. 在promethus页面刷新Status->Targets页面,可以看到配置的两个Target的State为UP:
5. 在137主机上安装部署grafana
安装教程链接https://www.jb51.net/article/204660.htm
5.1 添加promethus数据源 未完待续…
RTX 5090要首发 性能要翻倍!三星展示GDDR7显存
三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。
首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。
据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。
更新日志
- 群星.1986-新格名曲精丫新格】【WAV+CUE】
- 群星.1986-新格名曲精选-歌3【新格】【WAV+CUE】
- 妙音唱片净化心灵·归还真我群星-无尘系列6CDWAV+CUE
- 孙协志2004-胜立精选(闽南语)[大旗][WAV+CUE]
- 徐若瑄《先听我说完》[320K/MP3][93.78MB]
- 徐若瑄《先听我说完》[FLAC/分轨][498.77MB]
- Resa Club《Soft Opening(Explicit)》[320K/MP3][72.41MB]
- 宝丽金群星.1997-舞池中Remix【宝丽金】【WAV+CUE】
- 吕继宏2010-广州独唱音乐会LIVE专辑[DMC唱片][WAV+CUE]
- 李丹阳1999-红月亮[上海音像][WAV+CUE]
- 廖昌永2007-怀念[中唱][WAV+CUE]
- 區瑞強1999-極品陌上歸人II[FLAC]
- [In-AkustikINAK7961]ATastySoundCollection-CoffeeLatin《咖啡和拉斗(2009)[WAV+CUE]
- Resa Club《Soft Opening(Explicit)》[FLAC/分轨][192.37MB]
- 紫龙游戏《钢岚 (原声音乐辑)》[320K/MP3][145.56MB]