victoria metrics setup

vmetrics

install

see vmetrics-install

daemon setup

victoria-metrics-prod -h | less

eventually setup a custom dashboard right ahead.

ready to go

tail -F /var/log/vmetrics.log

start and enable

vi /etc/rc.local

#!/bin/bash

echo rc.local PATH is $PATH

echo starting vmetrics
cd /data/vmetrics/
nohup victoria-metrics-prod \
    -storageDataPath /data/vmetrics \
    -httpListenAddr 127.0.0.1:8428 \
    -retentionPeriod 3d \
    --vmui.customDashboardsPath=/data/active-dashboards \
    > /var/log/vmetrics.log &

chmod +x /etc/rc.local
systemctl list-unit-files | grep rc-local

status

pgrep -a victoria
netstat -lntup

stop

pkill victoria

authentication

eventually enable a reverse-proxy

metrics injection

you are now ready to push some metrics over there, see flb-vmetrics

and then see dashboard and acceptance

resources

https://new.docs.victoriametrics.com/

https://new.docs.victoriametrics.com/quick-start/

https://docs.victoriametrics.com/keyConcepts.html

https://docs.victoriametrics.com/Quick-Start.html

https://docs.victoriametrics.com/BestPractices.html

https://github.com/VictoriaMetrics/VictoriaMetrics/wiki/Single-server-VictoriaMetrics#operation

security

https://docs.victoriametrics.com/operator/security.html


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun