centos部署VictoriaMetrics

发布时间:2024年01月04日

一、目标

在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/

文章来源:https://blog.csdn.net/xoofly/article/details/135384370
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。