Prometheus 安装

news/2024/5/19 1:19:44 标签: prometheus

下载

  • 官网下载,下载版本:prometheus-2.23.0.linux-amd64.tar.gz
  • 下载版本:node_exporter-1.0.1.linux-amd64.tar.gz
  • 下载版本:grafana-7.3.6-1.x86_64.rpm,这时用户可以考虑使用第三方的可视化工具如Grafana,Grafana是一个开源的可视化平台,并且提供了对Prometheus的完整支持。

步骤

cd /opt

wget https://github.com/prometheus/prometheus/releases/download/v2.23.0/prometheus-2.23.0.linux-amd64.tar.gz

## 解压到指定目录 /usr/local
tar -C /usr/local -zxvf prometheus-2.23.0.linux-amd64.tar.gz

cd /usr/local
mv prometheus-2.23.0.linux-amd64 prometheus
cp prometheus.yml prometheus-back.yml

## 后台启动
/usr/local/prometheus/prometheus --config.file="/usr/local/prometheus/prometheus.yml" &


## 查看版本
/usr/local/prometheus/prometheus --version
  • Prometheus 的 web 监控界面
    http://localhost:9090

安装 Node Exporter

wget https://github.com/prometheus/node_exporter/releases/download/v1.0.1/node_exporter-1.0.1.linux-amd64.tar.gz

tar -C /usr/local -zxvf node_exporter-1.0.1.linux-amd64.tar.gz

mv node_exporter-1.0.1.linux-amd64 node_exporter

mv node_exporter-1.0.1.linux-amd64 node_exporter
## 启动
/usr/local/node_exporter/node_exporter &
  • Node Exporter 页面
    http://localhost:9100/

安装 Grafana

wget https://dl.grafana.com/oss/release/grafana-7.3.6-1.x86_64.rpm
sudo yum install grafana-7.3.6-1.x86_64.rpm

Start the server with systemd

To start the service and verify that the service has started:

sudo systemctl daemon-reload
sudo systemctl start grafana-server
sudo systemctl status grafana-server

InfluxDB 安装

  • 安装版本 InfluxDB v1.8.3

RedHat & CentOS

wget https://dl.influxdata.com/influxdb/releases/influxdb-1.8.3.x86_64.rpm
sudo yum localinstall influxdb-1.8.3.x86_64.rpm

http://www.niftyadmin.cn/n/1364023.html

相关文章

简单图片的计数器也可用java实现

利用java实现简单图片的计数器&#xff0c;运行图&#xff1a; 想学习更多关于java的知识&#xff0c;可以点击《Java EE软件工程师》进行学习。 <% page contentType"text/html;charsetgb2312"%><% page language"java" import"java.io.*&q…

Error running ‘Application‘: command line is too long

idea 运行 TEST 类 解决方案&#xff1a; Shorten command line 选项&#xff0c;选择&#xff1a; JAR manifest - … 不要更改idea/workspace.xml文件&#xff0c;不然运行其他Spring Boot项目会有问题&#xff08;jar包的类找不到&#xff0c;无法注入spring容器&#x…

小资生活——家庭NAS之路

家庭NAS之路工作原因耽搁了很久&#xff0c;但终于全面升级了家里的路由器并安装了一起期待的NAS系统&#xff0c;从购买设备&#xff0c;硬盘&#xff0c;调试来来回回一个礼拜&#xff0c;终于实现所有需要的功能。写下来分享我的心路历程&#xff0c;也希望抛砖引玉。<ig…

VSCode搭建Go开发环境

博客 VSCode搭建Go开发环境 环境变量 linux 下环境变量 GOROOT&#xff08;安装目录&#xff09;、 GOPATH&#xff08;工作目录&#xff09;、GOBIN&#xff08;可执行文件目录&#xff09;、 PATH&#xff08;环境变量&#xff09;Windows 中在系统变量 Path 中添加 D:\G…

数据结构之 线性表--整理音乐

整理音乐 Time Limit: 1000MS Memory limit: 65536K 题目描述 请用链表完成下面题目要求。 xiaobai 很喜欢音乐&#xff0c;几年来一直在收集好听的专辑。他有个习惯&#xff0c;每次在听完一首音乐后会给这首音乐打分&#xff0c;而且会隔一段时间给打好分的音乐排一个名次。今…

阿里云对象存储 OSS

链接 简单上传快速入门拷贝文件

Android ActionBar详解(一):ActionBar概述及其创建

在Android 3.0中除了我们重点讲解的Fragment外&#xff0c;Action Bar也是一个重要的内容&#xff0c;Action Bar主要是用于代替传统的标题栏&#xff0c;对于Android平板设备来说屏幕更大它的标题使用Action Bar来设计可以展示更多丰富的内容&#xff0c;方便操控。 Action Ba…

安装 Helm

Installing Helm 介绍 Welcome to the Helm documentation. Helm is the package manager for Kubernetes, and you can read detailed background information in the CNCF Helm Project Journey report. 从二进制版本 wget https://get.helm.sh/helm-v3.4.2-linux-amd64.…