centos部署VictoriaMetrics

一、目标

在centos7.9上部署VictoriaMetrics v1.93.9

二、具体步骤

● 官网
https://github.com/VictoriaMetrics/VictoriaMetrics/releases

1、下载合适版本的redis
wget https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v1.93.9/victoria-metrics-linux-amd64-v1.93.9.tar.gz --no-check-certificate
2、解压并'安装'放置VictoriaMetrics
mkdir -p /data/victoria-metrics
mkdir /usr/local/victoria-metrics-linux-amd64-v1.93.9
tar -zxf victoria-metrics-linux-amd64-v1.93.9.tar.gz -C /usr/local/victoria-metrics-linux-amd64-v1.93.9/
ln -s /usr/local/victoria-metrics-linux-amd64-v1.93.9/ /usr/local/victoria-metrics
3、创建victoria-metrics启动服务脚本
cat << EOF > /etc/systemd/system/victoria-metrics.service
[Unit]
Description=victoria-metrics
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/victoria-metrics/victoria-metrics-prod  -retentionPeriod=90d -storageDataPath=/data/victoria-metrics
WorkingDirectory=/data/victoria-metrics
Restart=always

[Install]
WantedBy=multi-user.target
EOF
4、启动victoria-metrics
systemctl daemon-reload
systemctl start victoria-metrics
systemctl enable victoria-metrics
5、验证victoria-metrics是否启动成功
systemctl status victoria-metrics
ps -ef |grep victoria-metrics

http://192.168.10.90:8428/vmui/

centos部署VictoriaMetrics_第1张图片

你可能感兴趣的:(VictoriaMetrics,centos,linux,运维)