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

厦门网站建设报价石家庄seo优化

厦门网站建设报价,石家庄seo优化,济南网站制作 泉诺,视频模板免费prometheus 安装服务端客户端监控mysql prometheus浏览器查看 安装 https://prometheus.io/download/下载客户端和服务端以及需要监控的所有的包服务端 官网下载下载prometheustar -xf prometheus-2.47.2.linux-amd64.tar.gz -C /usr/local/ cd /usr/local/ mv prometheus-2.…

prometheus

    • 安装
      • 服务端
      • 客户端
      • 监控mysql
    • prometheus浏览器查看

安装

https://prometheus.io/download/下载客户端和服务端以及需要监控的所有的包

在这里插入图片描述

服务端

官网下载下载prometheustar -xf prometheus-2.47.2.linux-amd64.tar.gz -C /usr/local/
cd /usr/local/
mv prometheus-2.47.2.linux-amd64 prometheus
cd prometheus
./prometheus --config.file=prometheus.yml &     //启动prometheus
将Prometheus配置为systemd管理vim /usr/lib/systemd/system/prometheus.service[Unit]
Description=https://prometheus.io[Service]
Restart=on-failure
ExecStart=/usr/local/prometheus/prometheus --config.file=/usr/local/prometheus/prometheus.yml --web.listen-address=:9090[Install]                      
WantedBy=multi-user.targetsystemctl daemon-reload
systemctl start prometheus

客户端

官网下载安装node_exportertar -xf node_exporter-1.7.0.linux-amd64.tar.gz -C /usr/local/
cd /usr/local/
mv node_exporter-1.7.0.linux-amd64/ node_exporter
cd node_exporter/
./node_exporter &默认端口9100
将node_exporter配置为systemd管理vim /usr/lib/systemd/system/node_exporter.service[Unit]
Description=node_exporter
After=network.target [Service]
ExecStart=/usr/local/node_exporter/node_exporter
Restart=on-failure[Install]
WantedBy=multi-user.targetsystemctl daemon-reload
systemctl start node_exporter
服务端配置数据
vim 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"]# 添加以下内容- job_name: "node_exporter"static_configs:# 如果有多个机器,用','分开- targets: ['ip:端口']# 重启prometheus服务
systemctl restart prometheus

监控mysql

# 官网下载安装mysqld-exporter
tar xf mysqld_exporter-0.15.0.linux-amd64.tar.gz -C /usr/local/
cd /usr/local
mv mysqld_exporter-0.15.0.linux-amd64 mysqld_exporter
cd mysqld_exporter/vim .my.cnf[client]
user=用户名
password=密码./mysqld_exporter --config.my-cnf="/usr/local/mysqld_exporter/.my.cnf" &           //启动mysqld-exporterps -ef |grep mysqld_exporter    //查看进程
ss -lntp |grep 4647             //过滤进程号,查看端口
默认端口:9104
将mysqld-exporter配置为systemd管理vim /usr/lib/systemd/system/mysqld_exporter.service[Unit]
Description=Prometheus
[Service]
ExecStart=/usr/local/mysqld_exporter/mysqld_exporter --config.my-cnf=/usr/local/mysqld_exporter/.my.cnf
Restart=on-failure
[Install]
WantedBy=multi-user.targetsystemctl daemon-reload
systemctl start mysqld_exporter
服务端配置
vim prometheus.yml                  //prometheus配置文件添加- job_name: 'mysql'static_configs:- targets: ['ip:端口']systemctl restart prometheus   //重启prometheus

prometheus浏览器查看

浏览器访问
ip:9090

在这里插入图片描述

status=》Targets
查看关联的主机

在这里插入图片描述

http://www.hkea.cn/news/566096/

相关文章:

  • 网站开发 word文件预览医疗器械龙头股
  • 电子商务网站建设花费南宁百度seo排名价格
  • 做公司网站要注意哪些问题真正免费建站网站
  • 在线服务器代理杭州seo网络公司
  • wordpress邮件订阅seo技术外包
  • 深圳营销网站建站公司搜索引擎关键词的工具
  • 做网站如何网站考虑优化游戏推广员是诈骗吗
  • 公众号做视频网站吗关键词排名怎么做上首页
  • 重庆做网站价格优化软件下载
  • 如何做网站镜像今日最火的新闻
  • 水果网站开发所需的成本市场营销实际案例
  • 无锡市新吴区住房和建设交通局网站西安百度关键词包年
  • 网站平台方案设计seo上首页
  • 郑州做网站的联系方式搜狗友链交换
  • 一般建设一个网站多少钱怎么接广告赚钱
  • 计算机专业网站开发方向销售推广方案
  • 上海网站建设公司排名西安百度公司
  • 中国网网址是多少网站推广优化教程
  • 关于加强机关网站建设运营培训
  • dw做的网站怎么让别人看到如何建立一个网站
  • 保险网站建设优缺点seo代码优化步骤
  • 如何快速建网站百度电脑版入口
  • 山东省建设工程信息网站最近最新的新闻
  • 免费网站建设方案锦绣大地seo官网
  • 电子商务的网站建设牛排seo系统
  • 资源收费网站怎么做网站快速优化排名官网
  • 招标网哪个网站信息可靠百度站长工具网站
  • 郑州七七网站建设互联网推广公司
  • 佛山做外贸网站代理商百度收录技术
  • 公司网站建设需要什么今日热搜第一名