victoria metrics setup

install | vmetrics | metrics injection | dashboard and acceptance

install

see vmetrics-install

setup

daemon

victoria-metrics-prod -h | less

custom dashboard

    mkdir -p /data/{available,active}-dashboards/
    cd /data/available-dashboards/

grab the official sample

# https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/app/vmui#predefined-dashboards
# ==> Predefined dashboards
vi sample-per-job.json

now setup your own – we have per node as such

# https://pub.nethence.com/bin/monitoring/per-node.json
vi per-node.json

enable

cd /data/active-dashboards/
ln -s ../available-dashboards/per-node.json

also prepare a folder to be used by -storageDataPath

mkdir /data/vmetrics/

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

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