2021-09-01 08:18:56 +02:00
|
|
|
# Docker compose environment for VictoriaMetrics
|
2019-06-03 13:53:08 +02:00
|
|
|
|
2021-09-01 08:18:56 +02:00
|
|
|
To spin-up VictoriaMetrics, vmagent, vmalert, Alertmanager and Grafana run the following command:
|
2019-06-02 18:07:21 +02:00
|
|
|
|
2019-06-06 22:37:44 +02:00
|
|
|
`docker-compose up`
|
2019-06-02 18:07:21 +02:00
|
|
|
|
2021-09-01 08:21:45 +02:00
|
|
|
For clustered version check [docker compose in cluster branch](https://github.com/VictoriaMetrics/VictoriaMetrics/tree/cluster/deployment/docker).
|
2021-09-01 08:18:56 +02:00
|
|
|
|
|
|
|
## VictoriaMetrics
|
2019-06-06 22:37:44 +02:00
|
|
|
|
2021-09-01 08:18:56 +02:00
|
|
|
VictoriaMetrics will be accessible on the following ports:
|
2022-03-22 12:40:55 +01:00
|
|
|
|
2019-06-06 22:37:44 +02:00
|
|
|
* `--graphiteListenAddr=:2003`
|
|
|
|
* `--opentsdbListenAddr=:4242`
|
|
|
|
* `--httpListenAddr=:8428`
|
|
|
|
|
2021-09-01 08:18:56 +02:00
|
|
|
## vmagent
|
2019-06-06 22:37:44 +02:00
|
|
|
|
2020-06-29 21:05:34 +02:00
|
|
|
vmagent is used for scraping and pushing timeseries to
|
|
|
|
VictoriaMetrics instance. It accepts Prometheus-compatible
|
|
|
|
configuration `prometheus.yml` with listed targets for scraping.
|
2019-06-06 22:37:44 +02:00
|
|
|
|
2021-08-31 11:28:02 +02:00
|
|
|
[Web interface link](http://localhost:8429/).
|
|
|
|
|
2021-09-01 08:18:56 +02:00
|
|
|
## vmalert
|
2021-08-31 11:28:02 +02:00
|
|
|
|
2022-03-22 12:40:55 +01:00
|
|
|
vmalert evaluates alerting rules (`alerts.yml`) to track VictoriaMetrics
|
2021-08-31 11:28:02 +02:00
|
|
|
health state. It is connected with AlertManager for firing alerts,
|
|
|
|
and with VictoriaMetrics for executing queries and storing alert's state.
|
|
|
|
|
|
|
|
[Web interface link](http://localhost:8880/).
|
|
|
|
|
2021-09-01 08:18:56 +02:00
|
|
|
## alertmanager
|
2021-08-31 11:28:02 +02:00
|
|
|
|
|
|
|
AlertManager accepts notifications from `vmalert` and fires alerts.
|
|
|
|
All notifications are blackholed according to `alertmanager.yml` config.
|
|
|
|
|
|
|
|
[Web interface link](http://localhost:9093/).
|
|
|
|
|
2021-09-01 08:18:56 +02:00
|
|
|
## Grafana
|
2019-06-06 22:37:44 +02:00
|
|
|
|
|
|
|
To access service open following [link](http://localhost:3000).
|
|
|
|
|
2022-03-22 12:40:55 +01:00
|
|
|
Default credential:
|
|
|
|
|
2019-06-06 22:37:44 +02:00
|
|
|
* login - `admin`
|
|
|
|
* password - `admin`
|
|
|
|
|
|
|
|
Grafana is provisioned by default with following entities:
|
2022-03-22 12:40:55 +01:00
|
|
|
|
2019-06-06 22:37:44 +02:00
|
|
|
* VictoriaMetrics datasource
|
|
|
|
* Prometheus datasource
|
|
|
|
* VictoriaMetrics overview dashboard
|