VictoriaMetrics/docs/Quick-Start.md
2022-05-09 15:27:55 +03:00

4.9 KiB

sort
13

Quick start

Installation

Single-server-VictoriaMetrics VictoriaMetrics is available as:

Just download VictoriaMetrics and follow these instructions. Then read Prometheus setup and Grafana setup docs.

Starting VM-Single via Docker:

The following commands download the latest available Docker image of VictoriaMetrics and start it at port 8428, while storing the ingested data at victoria-metrics-data subdirectory under the current directory:

docker pull victoriametrics/victoria-metrics:latest
docker run -it --rm -v `pwd`/victoria-metrics-data:/victoria-metrics-data -p 8428:8428 victoriametrics/victoria-metrics:latest

Open http://localhost:8428 in web browser and read these docs.

There are also the following versions of VictoriaMetrics available:

Starting VM-Cluster via Docker:

The following commands clone the latest available VictoriaMetrics cluster repository and start the docker container via 'docker-compose'. Further customization is possible by editing the docker-compose.yaml file.

git clone https://github.com/VictoriaMetrics/VictoriaMetrics --branch cluster && cd VictoriaMetrics/deployment/docker && docker-compose up

Writing data

Data can be written to VictoriaMetrics in the following ways:

Reading data

VictoriaMetrics various APIs for reading the data. This document briefly describes these APIs.

Grafana setup:

Create Prometheus datasource in Grafana with the following url:

http://<victoriametrics-addr>:8428

Substitute <victoriametrics-addr> with the hostname or IP address of VictoriaMetrics.

Then build graphs and dashboards for the created datasource using PromQL or MetricsQL.