---
title: Install vmalert-tool on Linux | Snap Store
description: Get the latest version of vmalert-tool for Linux - VMAlert command-line
  tool
url: https://snapcraft.io/vmalert-tool
---

# vmalert-tool

[Denys Holius (denisgolius)](https://snapcraft.io/publisher/denisgolius "View all snaps from Denys Holius (denisgolius)")

* [Denys Holius (denisgolius)](https://snapcraft.io/publisher/denisgolius "View all snaps from Denys Holius (denisgolius)")
* [Devices and IoT](https://snapcraft.io/search?categories=devices-and-iot)
* [Server and Cloud](https://snapcraft.io/search?categories=server-and-cloud)

latest/stable v1.107.0

Contact us about
[Snaps and IoT ›](https://snapcraft.io/about/contact-us)

Install latest/stable of vmalert-tool

---

**Install using the command line**

```
sudo snap install vmalert-tool
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* vmalert-tool

---

### License

* Apache-2.0

---

### Last updated

* 9 December 2024 - latest/stable
* 9 December 2024 - latest/edge

---

### Websites

* [victoriametrics.com](https://victoriametrics.com/ "https://victoriametrics.com/")

---

### Contact

* [info@victoriametrics.com](mailto:info@victoriametrics.com "mailto:info@victoriametrics.com")

---

### Source code

* [github.com/VictoriaMetrics/VictoriaMetrics](https://github.com/VictoriaMetrics/VictoriaMetrics "https://github.com/VictoriaMetrics/VictoriaMetrics")

---

### Report a bug

* [github.com/VictoriaMetrics/VictoriaMetrics/issues/new/choose](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/new/choose "https://github.com/VictoriaMetrics/VictoriaMetrics/issues/new/choose")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/vmalert-tool#report-snap-modal)

---

* [Description](https://snapcraft.io/vmalert-tool#tab-description)
* [Security](https://snapcraft.io/vmalert-tool#tab-security)

#### VMAlert command-line tool

**vmalert-tool**

<https://docs.victoriametrics.com/vmalert-tool/>

**Unit testing for rules**

<https://docs.victoriametrics.com/vmalert-tool/#unit-testing-for-rules>

You can use `vmalert-tool` to run unit tests for alerting and recording rules. It will perform the following actions:

* sets up an isolated VictoriaMetrics instance;
* simulates the periodic ingestion of time series;
* queries the ingested data for recording and alerting rules evaluation like <https://docs.victoriametrics.com/vmalert/>;
* checks whether the firing alerts or resulting recording rules match the expected results.

**See how to run vmalert-tool for unit test below:**

Run vmalert-tool with one or multiple test files via --files cmd-line flag

`./vmalert-tool unittest --files test1.yaml --files test2.yaml`

vmalert-tool unittest is compatible with Prometheus config format for tests (<https://prometheus.io/docs/prometheus/latest/configuration/unit_testing_rules/#test-file-format> except) `promql_expr_test` field. Use `metricsql_expr_test` field name instead. The name is different because vmalert-tool validates and executes MetricsQL (<https://docs.victoriametrics.com/metricsql/>) expressions, which aren’t always backward compatible with PromQL (<https://prometheus.io/docs/prometheus/latest/querying/basics/>).

---

## Install vmalert-tool on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/vmalert-tool/arch)

[### CentOS](https://snapcraft.io/install/vmalert-tool/centos)

[### Debian](https://snapcraft.io/install/vmalert-tool/debian)

[### elementary OS](https://snapcraft.io/install/vmalert-tool/elementary)

[### Fedora](https://snapcraft.io/install/vmalert-tool/fedora)

[### KDE Neon](https://snapcraft.io/install/vmalert-tool/kde-neon)

[### Kubuntu](https://snapcraft.io/install/vmalert-tool/kubuntu)

[### Manjaro](https://snapcraft.io/install/vmalert-tool/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/vmalert-tool/pop)

[### openSUSE](https://snapcraft.io/install/vmalert-tool/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/vmalert-tool/rhel)

[### Ubuntu](https://snapcraft.io/install/vmalert-tool/ubuntu)
