grafana 改端口_Prometheus+Grafana搭建监控平台

本文详细介绍了如何搭建Prometheus+Grafana监控平台,包括Prometheus的安装配置,Grafana的安装、数据源添加,以及Node Exporter的部署。同时,文章还提及了如何修改Grafana的端口,配置邮件告警,以及对Istio服务网格的简介。
摘要由CSDN通过智能技术生成

1、 安装Prometheus

目录:/usr/local

下载:wget https://github.com/prometheus/prometheus/releases/download/v2.13.0/prometheus-2.13.0.linux-amd64.tar.gz

解压:tar -zxvf prometheus-2.13.0.linux-amd64.tar.gz

创建软链接:ln -s prometheus-2.13.0.linux-amd64 prometheus

prometheus的默认配置文件prometheus.yml内容如下:

prometheus的启动很简单,可以直接启动解压目录的二进制文件prometheus即可,为了方便统一管理,这里使用systemd来启停prometheus,并指定数据统一存放目录。

创建数据存放目录:mkdir -p /data/prometheus

配置systemd来启停prometheus服务:vi /etc/systemd/system/prometheus.service

[Unit]Description=PrometheusDocumentation=https://prometheus.io/After=network.target[Service]Type=simpleExecStart=/usr/local/prometheus/prometheus --config.file=/usr/local/prometheus/prometheus.yml --storage.tsdb.path=/data/prometheusRestart=on-failure

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值