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

Centos 从0搭建grafana和Prometheus 服务以及问题解决

下载

虚拟机下载

https://customerconnect.vmware.com/en/downloads/info/slug/desktop_end_user_computing/vmware_workstation_player/17_0

cenos 镜像下载

https://www.centos.org/download/

grafana 服务下载

https://grafana.com/grafana/download/7.4.0?platform=linux

Prometheus 服务下载

https://prometheus.io/download/

命令

grafana安装

sudo yum install -y https://dl.grafana.com/enterprise/release/grafana-enterprise-7.2.0-1.x86_64.rpm

grafana 启动

sudo systemctl start grafana-server -- 启动服务
sudo systemctl stop grafana-server -- 停止服务
sudo systemctl status grafana-server -- 查看状态

在这里插入图片描述

prometheus 安装

wget https://github.com/prometheus/prometheus/releases/download/v2.30.3/prometheus-2.30.3.linux-amd64.tar.gztar -xzf prometheus-2.30.3.linux-amd64.tar.gz 

prometheus 启动

找到解压目录
执行 ./prometheus
结果如图
在这里插入图片描述

虚拟机浏览器访问

在这里插入图片描述
在这里插入图片描述

搭建遇到问题

主机浏览器访问

这个一般通过 虚拟机ip 替换localhost 即可 加入你不可以 有几种情况

  • 一是你虚拟机不是桥接模式
  • 二可能你防火墙设置了

针对第二种你可以 通过命令关掉防火墙 (开发环境可以这样)

systemctl stop firewalld

grafana web 访问失败

在这里插入图片描述
出现如图所示的问题加入你符合他说的那几个情况 可以修改配置去调整,假如就是第一次按照没有代理没有docker ,直接安装的 在linux centos 环境中 那个就是版本问题。你需要按照低版本 目前我用7开头的版本实验是可以的。8以上目前存在类似问题。

http://www.lryc.cn/news/114449.html

相关文章:

  • 【代码解读】RRNet: A Hybrid Detector for Object Detection in Drone-captured Images
  • python人工智能可以干什么,python人工智能能干什么
  • K8s工作原理
  • go错误集(持续更新)
  • 【Docker】Docker中network的概要、常用命令、网络模式以及底层ip和容器映射变化的详细讲解
  • arcgis栅格数据之最佳路径分析
  • docker服务器部署Django
  • SpringBoot集成百度人脸识别实现登陆注册功能Demo(二)
  • FPGA纯verilog实现 LZMA 数据压缩,提供工程源码和技术支持
  • C++实现一个链栈
  • Vue电商项目--VUE插件的使用及原理
  • 2.部署kubernetes的组件
  • 后端开发4.Elasticsearch的搭建
  • 嵌入式该往哪个方向发展?
  • 非凸科技受邀参加中科大线上量化分享
  • Linux 命令之 - chown(改变文件拥有者及所属组)
  • 【基于openharmony的多路摄像头功能:USB设备插拔检测】
  • uni-app:实现数字文本框,以及左右加减按钮
  • 跨平台开发框架Qt:面向对象、丰富API
  • An unexpected error has occurred. Conda has prepared the above report
  • 考研C语言进阶题库——更新6-10题
  • 汽车BOOTLOADER开发经历
  • 适配器模式(C++)
  • HTTP连接之出现400 Bad Request分析
  • 后端开发, 接口幂等性是什么意思
  • k8s手动发布镜像的方法
  • 十二、ESP32控制步进电机
  • 利用openTCS实现车辆调度系统(六)openTCS订单的使用
  • 第一天 什么是CSRF ?
  • 知识图谱推荐系统研究综述