mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
vmanomaly guide docker compose run fix according licensing (#4876)
* docker-compose run fix according to licensing * public v1.5.0 of vmanomaly * new file list image * 1.93.1 version of VM
This commit is contained in:
parent
ef6468584c
commit
278d3c20a4
Binary file not shown.
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 28 KiB |
@ -11,10 +11,11 @@ aliases:
|
|||||||
# Getting started with vmanomaly
|
# Getting started with vmanomaly
|
||||||
|
|
||||||
**Prerequisites**
|
**Prerequisites**
|
||||||
|
- *vmanomaly* is a part of enterprise package. You can get license key [here](https://victoriametrics.com/products/enterprise/trial) to try this tutorial.
|
||||||
- In the tutorial, we'll be using the following VictoriaMetrics components:
|
- In the tutorial, we'll be using the following VictoriaMetrics components:
|
||||||
- [VictoriaMetrics](https://docs.victoriametrics.com/Single-server-VictoriaMetrics.html) (v.1.83.1)
|
- [VictoriaMetrics](https://docs.victoriametrics.com/Single-server-VictoriaMetrics.html) (v.1.93.1)
|
||||||
- [vmalert](https://docs.victoriametrics.com/vmalert.html) (v.1.83.1)
|
- [vmalert](https://docs.victoriametrics.com/vmalert.html) (v.1.93.1)
|
||||||
- [vmagent](https://docs.victoriametrics.com/vmagent.html) (v.1.83.1)
|
- [vmagent](https://docs.victoriametrics.com/vmagent.html) (v.1.93.1)
|
||||||
|
|
||||||
If you're unfamiliar with the listed components, please read [QuickStart](https://docs.victoriametrics.com/Quick-Start.html) first.
|
If you're unfamiliar with the listed components, please read [QuickStart](https://docs.victoriametrics.com/Quick-Start.html) first.
|
||||||
- It is assumed that you are familiar with [Grafana](https://grafana.com/)(v.9.3.1) and [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/).
|
- It is assumed that you are familiar with [Grafana](https://grafana.com/)(v.9.3.1) and [Docker](https://docs.docker.com/get-docker/) and [Docker Compose](https://docs.docker.com/compose/).
|
||||||
@ -164,6 +165,7 @@ As the result of running vmanomaly, it produces the following metrics:
|
|||||||
Here is an example of how output metric will be written into VictoriaMetrics:
|
Here is an example of how output metric will be written into VictoriaMetrics:
|
||||||
`anomaly_score{for="node_cpu_rate", cpu="0", instance="node-xporter:9100", job="node-exporter", mode="idle"} 0.85`
|
`anomaly_score{for="node_cpu_rate", cpu="0", instance="node-xporter:9100", job="node-exporter", mode="idle"} 0.85`
|
||||||
|
|
||||||
|
|
||||||
____________________________________________
|
____________________________________________
|
||||||
|
|
||||||
## 7. vmalert configuration
|
## 7. vmalert configuration
|
||||||
@ -251,8 +253,14 @@ scrape_configs:
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
### vmanomaly licencing
|
||||||
|
We are going to use license stored locally in file `vmanomaly_licence.txt` with key in it.
|
||||||
|
You can explore other license options [here](https://docs.victoriametrics.com/vmanomaly.html#licensing)
|
||||||
|
|
||||||
|
|
||||||
### Docker-compose
|
### Docker-compose
|
||||||
Let's wrap it all up together into the `docker-compose.yml` file
|
|
||||||
|
Let's wrap it all up together into the `docker-compose.yml` file.
|
||||||
|
|
||||||
<div class="with-copy" markdown="1">
|
<div class="with-copy" markdown="1">
|
||||||
|
|
||||||
@ -277,7 +285,7 @@ services:
|
|||||||
|
|
||||||
victoriametrics:
|
victoriametrics:
|
||||||
container_name: victoriametrics
|
container_name: victoriametrics
|
||||||
image: victoriametrics/victoria-metrics:v1.83.1
|
image: victoriametrics/victoria-metrics:v1.93.1
|
||||||
ports:
|
ports:
|
||||||
- 8428:8428
|
- 8428:8428
|
||||||
- 8089:8089
|
- 8089:8089
|
||||||
@ -337,7 +345,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
vmanomaly:
|
vmanomaly:
|
||||||
container_name: vmanomaly
|
container_name: vmanomaly
|
||||||
image: us-docker.pkg.dev/victoriametrics-test/public/vmanomaly-trial:v1.3.0
|
image: us-docker.pkg.dev/victoriametrics-test/public/vmanomaly-trial:v1.5.0
|
||||||
depends_on:
|
depends_on:
|
||||||
- "victoriametrics"
|
- "victoriametrics"
|
||||||
ports:
|
ports:
|
||||||
@ -347,7 +355,11 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./vmanomaly_config.yml:/config.yaml
|
- ./vmanomaly_config.yml:/config.yaml
|
||||||
command: [ "/config.yaml" ]
|
- ./vmanomaly_license.txt:/license.txt
|
||||||
|
platform: "linux/amd64"
|
||||||
|
command:
|
||||||
|
- "/config.yaml"
|
||||||
|
- "--license-file=/license.txt"
|
||||||
|
|
||||||
node-exporter:
|
node-exporter:
|
||||||
image: quay.io/prometheus/node-exporter:latest
|
image: quay.io/prometheus/node-exporter:latest
|
||||||
@ -385,6 +397,18 @@ docker-compose up -d
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
To check if vmanomaly is up and running you can check docker logs:
|
||||||
|
|
||||||
|
<div class="with-copy" markdown="1">
|
||||||
|
|
||||||
|
```
|
||||||
|
docker logs vmanomaly
|
||||||
|
```
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
___________________________________________________________
|
___________________________________________________________
|
||||||
|
|
||||||
## 9. Model results
|
## 9. Model results
|
||||||
|
Loading…
Reference in New Issue
Block a user