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即可登录系统。

相关推荐
wanhengidc2 分钟前
裸金属服务器与普通服务器的区别
运维·服务器·网络·游戏·智能手机
2301_7873284911 分钟前
57.DevOps入门
运维·devops
野犬寒鸦12 分钟前
面试常问:TCP相关(中级篇)问题原因即解决方案
服务器·网络·后端·面试
虾..23 分钟前
Linux 基于TCP实现服务端客户端通信(多进程/多线程版)
java·服务器·tcp/ip
小尔¥26 分钟前
LNMP环境部署
运维·数据库·nginx·php
报错小能手35 分钟前
nginx集群聊天室(五)nginx配置tcp服务器负载均衡
服务器·tcp/ip·nginx
李恒-聆机智能专精数采36 分钟前
从零开始了解数据采集技术篇(8)——为什么工业数据采集很难用“一站式平台”解决?从设备生态到系统架构的技术分析
运维·网络·数据库·数据分析·数据采集
报错小能手38 分钟前
如何手撕集群聊天室项目?
linux·服务器
HAPPY酷1 小时前
Ubuntu 中如何启用 root 账户?—— 从 “su: 认证失败” 到成功切换 root 的完整指南
服务器·数据库·ubuntu
焦糖玛奇朵婷1 小时前
盲盒小程序一站式开发
java·大数据·服务器·前端·小程序