Installation on Windows

GMT can only run on Windows with the Windows Subsystem for Linux (WSL). Before installing GMT make sure you have a working WSL environment.

With WSL you are working with a real Linux distribution (e.g. Ubuntu). Therefore, the most installation steps are equal to the ones documented in Installation on Linux →. On this page we only document the things that are different.

If you ever get stuck during this installation, be sure to reboot WSL once. It may help to correctly load some configurations and/or daemons.

Docker Desktop for Windows

Docker provides a great installation help on their website: https://docs.docker.com/desktop/install/windows-install/

You can just use the Docker Desktop for Windows bundle. Make sure the WSL 2 feature is enabled.

Setup

Before following the setup instructions given in Installation on Linux →, make sure the automatic generation of the hosts file is disabled.

Disable automatic generation of hosts file

sudo vim /etc/wsl.conf

Add the following two lines:

[network]
generateHosts = false

Reference: https://devblogs.microsoft.com/commandline/automatically-configuring-wsl/

Add hosts entries to Windows

To be able to access the frontend and the API of the GMT, you have to add the URLs to the hosts file on your Windows host system: C:\Windows\System32\drivers\etc\hosts

127.0.0.1 green-coding-postgres-container
127.0.0.1 api.green-coding.internal metrics.green-coding.internal

Metric providers

With WSL it is not possible to measure anything except the CPU utilization via procfs (cpu.utilization.procfs.system.provider).

You have to disable all other providers in your config.yml.