nightinage部署

git开源地址 GitHub - ccfos/nightingale: An all-in-one observability solution which aims to combine the advantages of Prometheus and Grafana. It manages alert rules and visualizes metrics, logs, traces in a beautiful web UI.

一、下载源码自己编译运行

二、用release包安装运行

主要参考这篇 【夜莺监控】初识夜莺,还是强!block了很久mysql的问题

先说mysql安装的问题

1)参照这篇文章

Mysql连接编译踩坑问题-CSDN博客注意这个项目里访问mysql的密码就是1234 不要改了 改了后面登不上

1.安装mysql

sudo apt-get install mysql

2安装redis

sudo apt install redis-server

安装tsdb

复制代码
# 下载二进制包
$ wget https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v1.90.0/victoria-metrics-linux-amd64-v1.90.0.tar.gz
# 解压
$ tar xf victoria-metrics-linux-amd64-v1.90.0.tar.gz
# 启动
$ nohup ./victoria-metrics-prod &>victoria.log &

安装n9e

复制代码
# 下载最新版本的二进制包
$ wget https://github.com/ccfos/nightingale/releases/download/v6.0.0-ga.3/n9e-v6.0.0-ga.3-linux-amd64.tar.gz
# 解压
$ mkdir n9e
$ tar xf n9e-v6.0.0-ga.3-linux-amd64.tar.gz -C n9e/

导入n9e数据库

复制代码
mysql -uroot -p <n9e.sql

修改 N9e 的配置文件,在当前目录 etc/config.toml 文件中。

复制代码
[[Pushgw.Writers]]
# Url = "http://127.0.0.1:8480/insert/0/prometheus/api/v1/write"
Url = "http://127.0.0.1:8428/api/v1/write"

然后启动n9e服务

复制代码
# 启动服务
$ nohup ./n9e &>n9e.log &
# 检测17000端口是否启动
$ ss -ntl | grep 17000
LISTEN 0      4096               *:17000            *:*

在浏览器输入http://127.0.0.1:17000,然后输入用户名root,密码root.2020即可登录系统。

相关推荐
虾..10 分钟前
Linux 多线程,线程分离
linux·运维·服务器
Anastasiozzzz12 分钟前
对抗大文件上传---分片加多重Hash判重
服务器·后端·算法·哈希算法
云飞云共享云桌面15 分钟前
推荐一些适合10个SolidWorks设计共享算力的服务器硬件配置
运维·服务器·前端·数据库·人工智能
DO_Community20 分钟前
如何选择对象存储?Amazon S3 与 DigitalOcean Spaces 深度解析
运维·服务器·ai·aws·对象存储·云服务·金融科技
女王大人万岁28 分钟前
Go标准库 sync 详解
服务器·开发语言·后端·golang
ZCXZ12385296a30 分钟前
物流自动化环境下的纸箱检测与识别_YOLO13-SEG-REPVGGOREPA模型应用
运维·自动化
2401_8322981032 分钟前
安卓证书在线生成,一键签名・安全高效
运维
蜡笔小炘34 分钟前
LVS -- 部署DR模式集群案例
运维·服务器·lvs
露天赏雪38 分钟前
JDK8 的入门避坑指南
java·服务器·windows·spring boot·后端·spring·性能优化
成都极云科技1 小时前
成都GPU服务器托管 - 成都服务器idc托管
运维·服务器