The key component in this stack is Loki. Loki has a set of components which are internally referred to as modules. Each component spawns a gRPC server for internal traffic and an HTTP/1 server for external API requests.
There are two ways to deploy Loki, monolithic mode and microservices mode.
Monolithic mode (single process mode)
Monolithic mode (single process mode) is ideally suited for local development, small workloads, and for evaluation purposes.
- Make sure KALM installed to your cluster.
- Make sure you have kubectl and configure to your cluster.
- Make sure your cluster has at least 500m cpu and 800Mi memory (each node has at least 100m cpu and 100Mi) to install PLG.
Install PLG on KALM
Run the following command to install monolithic mode plg. In the future, this step will be able to be done through web interface.
View & Query logs
Let's view grafana log for demo by visiting this link.
Don't worry about the permission. As long as you don't give it a route, it will be only accessible locally with port-forward. External access with permissions is under development.
After test, you can run the following command to clean up the test logging system. If you are using cloud platform, you need also delete generated Disks to avoid unexpected charge.
Working in progress.