VictoriaMetrics/snap/local/README.md

51 lines
1.2 KiB
Markdown
Raw Normal View History

### Snap integration
<https://snapcraft.io/>
snap link: <https://snapcraft.io/victoriametrics>
#### develop
2021-12-08 12:05:35 +01:00
Install snapcraft or docker
build snap package with command
```console
2021-12-08 12:05:35 +01:00
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:
```console
# 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
```console
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:
```console
echo 'FLAGS="-selfScrapeInterval=10s -search.logSlowQueryDuration=20s"' > /var/snap/victoriametrics/current/extra_flags
snap restart victoriametrics
```
2021-12-08 12:05:35 +01:00
Data folder located at `/var/snap/victoriametrics/current/var/lib/victoriametrics/`