Following the docker deployment guide, I’ve enabled metrics in .env and with the docker compose command, but then it says to refer to the Linux guide to get the OpenZiti controller to emit **fabric.usage**events. Though I’m struggling to find where the ziti controller config file is, as unlike a regular Linux install, Docker runs zrok2 in numerous containers with a different file system layout. Please could someone guide me in finding the config file and getting metrics up and running? Cheers
This likely isn't setup to be configurable via environment variable injections, so you'd most likely need to modify the config in the ziti-controller container on the docker volume mounted at:
volumes:
- ziti-ctrl-data:/ziti-controller
Cheers pal, silly question but how do you access this volume and find the config file on it? Thanks
Not silly at all. I'd start with an exec into the container and then poke around and see if you can find the controller config (I admittedly don't know off hand where the controller config is stored), but let me know if you can't find it from this and I'll see if I can dig up the location from the container build.
docker exec -it <container_name_or_id> /bin/bash
Cheers. I've edited the config files within the ziti-controller and ziti-router containers (vi /ziti-controller/config.yml) and added the lines suggested by the docker and linux metrics guides, as well as enable the relevant lines in my .env file. However even after re-composing the zrok2 containers with the --profile metrics command, the controller metrics service keeps restarting and refuses to work.
Also, the InfluxDB test command
docker compose exec influxdb influx query
'from(bucket: "zrok2") |> range(start: -5m) |> count()'
--org zrok2 --token "${ZROK2_INFLUX_TOKEN}" --raw
returns an error 401 unauthorised when I try to run it.
Are there any plans to improve the metrics integration in a future update?