mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 07:19:17 +01:00
Cluster sync master changes (#1592)
* docker: add README for docker compose env * docker: add vmalert Grafana dashboard
This commit is contained in:
parent
0b5f30b4f9
commit
434f33d04d
2300
dashboards/vmalert.json
Normal file
2300
dashboards/vmalert.json
Normal file
File diff suppressed because it is too large
Load Diff
58
deployment/docker/README.md
Normal file
58
deployment/docker/README.md
Normal file
@ -0,0 +1,58 @@
|
||||
# Docker compose environment for VictoriaMetrics
|
||||
|
||||
To spin-up VictoriaMetrics cluster, vmagent, vmalert, Alertmanager and Grafana run the following command:
|
||||
|
||||
`docker-compose up`
|
||||
|
||||
For single version check [docker compose in master branch](https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/deployment/docker).
|
||||
|
||||
## VictoriaMetrics
|
||||
|
||||
VictoriaMetrics cluster in this environment consists of
|
||||
vminsert, vmstorage and vmselect components. Only vmselect
|
||||
has exposed port `:8481` and the rest of components are available
|
||||
only inside of environment.
|
||||
The communication scheme between components is the following:
|
||||
* [vmagent](#vmagent) sends scraped metrics to vminsert;
|
||||
* vminsert forwards data to vmstorage;
|
||||
* vmselect is connected to vmstorage for querying data;
|
||||
* [grafana](#grafana) is configured with datasource pointing to vmselect;
|
||||
* [vmalert](#vmalert) is configured to query vmselect and send alerts state
|
||||
and recording rules to vminsert;
|
||||
* [alertmanager](#alertmanager) is configured to receive notifications from vmalert.
|
||||
|
||||
## vmagent
|
||||
|
||||
vmagent is used for scraping and pushing timeseries to
|
||||
VictoriaMetrics instance. It accepts Prometheus-compatible
|
||||
configuration `prometheus.yml` with listed targets for scraping.
|
||||
|
||||
[Web interface link](http://localhost:8429/).
|
||||
|
||||
## vmalert
|
||||
|
||||
vmalert evaluates alerting rules (`alerts.yml`) to track VictoriaMetrics
|
||||
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/).
|
||||
|
||||
## alertmanager
|
||||
|
||||
AlertManager accepts notifications from `vmalert` and fires alerts.
|
||||
All notifications are blackholed according to `alertmanager.yml` config.
|
||||
|
||||
[Web interface link](http://localhost:9093/).
|
||||
|
||||
## Grafana
|
||||
|
||||
To access service open following [link](http://localhost:3000).
|
||||
|
||||
Default creds:
|
||||
* login - `admin`
|
||||
* password - `admin`
|
||||
|
||||
Grafana is provisioned by default with following entities:
|
||||
* VictoriaMetrics datasource
|
||||
* Prometheus datasource
|
||||
* VictoriaMetrics overview dashboard
|
@ -28,6 +28,7 @@ services:
|
||||
- ./provisioning/:/etc/grafana/provisioning/
|
||||
- ./../../dashboards/victoriametrics.json:/var/lib/grafana/dashboards/vm.json
|
||||
- ./../../dashboards/vmagent.json:/var/lib/grafana/dashboards/vmagent.json
|
||||
- ./../../dashboards/vmalert.json:/var/lib/grafana/dashboards/vmalert.json
|
||||
|
||||
vmstorage:
|
||||
container_name: vmstorage
|
||||
|
Loading…
Reference in New Issue
Block a user