The source code and default configuration of the Building Block is available in our code.sysEleven.de. Infos on release notes and new features please follow Release notes loki-promtail
You need to provide a storage provider for this Building Block. Proceed with the following prerequisite description to use the Velero Building Block out of the box.
A recommended resource overview is listed in the table below.
CPU/vCPU | Memory |
---|---|
none | 512MiB + 256 per node |
No further activities need to be carried out in advance.
Add the directory syseleven-loki-promtail
to your control repository. Add a .gitlab-ci.yml
to the directory with the following content:
include:
- project: syseleven/building-blocks/helmfiles/loki-promtail
file: JobDevelopment.yaml
ref: 10.5.0
- project: syseleven/building-blocks/helmfiles/loki-promtail
file: JobStaging.yaml
ref: 10.5.0
- project: syseleven/building-blocks/helmfiles/loki-promtail
file: JobProduction.yaml
ref: 10.5.0
Remove environments you are not using by removing their include. !
No confguration is required.
The easiest way to access the logs is Grafana provided with the kube-stack-prometheus module. We automatically create a Loki data source for you in it, so you can skip this step in the linked upstream documentation. In Grafana, you can use the explore feature to take a look at your logs and refine your query.
For something more permanent, you can add a log panel to one of your dashboards.
If you prefer the command line you can use logcli.
If you need to scale the persistent volume Loki stores your data on, perform the following steps:
# Delete StatefulSet (the PVC will remain)
kubectl delete sts loki
# Patch the PVC to e.g. 10Gi
kubectl patch pvc storage-loki-0 -p '{"spec":{"resources":{"requests":{"storage":"10Gi"}}}}' --type=merge
Then, adapt your adapt values.yaml, e.g. values-loki-stage.yaml
for the same size as the patch above.
To deploy the StatefulSet again, push your changes and merge them to the default branch - the CI will then deploy it again.
This building block consists of multiple components. Each of the components can and must be scaled individually.
Also see Scaling with Loki for upstream documentation.
Please find more infos on release notes and new features Release notes Loki-Promtail