Go to dwg-production
and stop prometheus and node-exporter. Those containers will not be used anymore: docker compose down -v prometheus node-exporter
Update repo URL: git remote set-url origin [<https://github.com/joyutils/dwg-production.git>](<https://github.com/joyutils/dwg-production.git>)
Fetch latest repo changes: git pull origin main
Modify .env
:
ENABLE_TELEMETRY
to yes
ELASTIC_URL=https://elastic.joyutils.org:443
ELASTIC_USERNAME
and ELASTIC_PASSWORD
- use the same values as in distributor configNODE_ID
- use the same value as id
in distributor configModify you distributor config:
id
- this is now passed via env variablelogs.elastic
section leave only level
field. Other values will be passed via env:elastic:
level: http
Stop services that need to update:
docker compose down graphql-server
docker compose down distributor
Start everything:
docker compose up -d collector
docker compose up -d metricbeat
docker compose up -d graphql-server
docker compose up -d distributor