Adding the pre-configured stack
Overnode installs and upgrades Loki driver for Docker automatically when the tool is installed / upgraded. This enables containers to stream stdout / stderr logs to the Loki server.
First of all, it is necessary to add the Loki stack to a project:
Adjust the downloaded settings as required. Default settings should work fine for a start. The stack opens
3100 port on localhost interface on each node. The server on the port forwards traffic to the Loki server using the network of a cluster.
The default configuration also enables logs collection from
/var/logs on each host.
Configuring logging per containers
In order to opt in containers to log to Loki, add
logging section to the required services, like the following:
Browsing logs in Loki using Grafana
In order to browse logs, add the pre-configured Grafana stack:
Adjust the downloaded settings as required. Default settings should work fine for a start. The stack opens port
4431 on each host. The server uses self-signed certificate. And the Basic HTTP username/password is configured to