VictoriaMetrics/docs/Quick-Start.md
Yurii Kravets 38383c0bec
Update Quick-Start (#2422)
* Update Quick-Start

* Update docs/Quick-Start.md

Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>

* Update docs/Quick-Start.md

Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>

* Update docs/Quick-Start.md

Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>

* Update docs/Quick-Start.md

Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>

* update Quick-Start.md

added "Starting VM-Cluster via Docker" + Anchor fixes

* Apply suggestions from code review

Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>
Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2022-04-12 14:22:53 +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-Signle 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.