kylin10 上 Prometheus3.5+grafana12 安装部署

kylin10 上 Prometheus3.5+grafana12 安装部署

一、安装Prometheus

1.环境配置

[root@zabbix71 prometheus]# hostnamectl
   Static hostname: zabbix71
         Icon name: computer-vm
           Chassis: vm
        Machine ID: d90e35d6b0ab46ba9a297436a8be50e7
           Boot ID: a9647c77f04848b09c5257818ff2c949
    Virtualization: vmware
  Operating System: Kylin Linux Advanced Server V10 (Halberd)
            Kernel: Linux 4.19.90-89.11.v2401.ky10.x86_64
      Architecture: x86-64

2.软件下载

官网下载

https://prometheus.io/download/

本次使用的安装包

https://github.com/prometheus/prometheus/releases/download/v3.5.0/prometheus-3.5.0.linux-amd64.tar.gz

wget https://github.com/prometheus/prometheus/releases/download/v3.5.0/prometheus-3.5.0.linux-amd64.tar.gz

cd /soft

3.解压

tar -zxf prometheus-3.5.0.linux-amd64.tar.gz -C /usr/local/
 mv /usr/local/prometheus-3.5.0.linux-amd64/  /usr/local/prometheus/

4.将Prometheus配置为系统服务

cd /etc/systemd/system
vi prometheus.service
[Unit]
Description=https://prometheus.io
[Service]
Restart=on-failure
ExecStart=/usr/local/prometheus/prometheus --config.file=/usr/local/prometheus/prometheus.yml
[Install]
WantedBy=multi-user.target
© 版权声明
THE END
如果内容对您有所帮助,就支持一下吧!
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容