VictoriaMetrics/snap/local
Aliaksandr Valialkin b47caa86db
all: update the minimum required Go verson from 1.19.1 to 1.19.2
This is needed because of security vulnerabilities found in Go 1.19.1
See https://go.dev/doc/devel/release#go1.19.2
2022-10-07 22:43:37 +03:00
..
Dockerfile snap: update Go builder from v1.17.3 to v1.17.7 2022-02-15 12:43:04 +02:00
Makefile all: update the minimum required Go verson from 1.19.1 to 1.19.2 2022-10-07 22:43:37 +03:00
README.md all: replace bash with console blocks in all the *.md files 2022-06-19 23:00:39 +03:00
victoriametrics-wrapper adds snap package for victoria-metrics (#904) 2020-11-18 02:00:06 +02:00

Snap integration

https://snapcraft.io/

snap link: https://snapcraft.io/victoriametrics

develop

Install snapcraft or docker

build snap package with command

make build-snap

It produces snap package with current git version - victoriametrics_v1.46.0+git1.1bebd021a-dirty_all.snap. You can install it with command: snap install victoriametrics_v1.46.0+git1.1bebd021a-dirty_all.snap --dangerous

usage

installation and configuration:

# install
snap install victoriametrics
# logs
snap logs victoriametrics
# restart
 snap restart victoriametrics

Configuration management:

Prometheus scrape config can be edited with your favorite editor, its located at

vi /var/snap/victoriametrics/current/etc/victoriametrics-scrape-config.yaml

after changes, you can trigger config reread with curl localhost:8248/-/reload.

Configuration tuning is possible with editing extra_flags:

echo 'FLAGS="-selfScrapeInterval=10s -search.logSlowQueryDuration=20s"' > /var/snap/victoriametrics/current/extra_flags
snap restart victoriametrics

Data folder located at /var/snap/victoriametrics/current/var/lib/victoriametrics/