Skip to content
Snippets Groups Projects
Commit 99262bda authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

Merge branch '200-research-central-logging-options' into 'master'

Add Loki + promtail for log aggregation

Closes #200

See merge request openappstack/openappstack!208
parents 034bfab6 b2482a32
No related branches found
No related tags found
No related merge requests found
......@@ -136,3 +136,9 @@ grafana:
enabled: true
size: 2Gi
accessModes: ["ReadWriteOnce"]
additionalDataSources:
- name: Loki
url: http://loki-stack.oas.svc.cluster.local:3100
type: loki
access: proxy
# Maintaining an Openappstack cluster
## Logging
Logs from pods and containers can be read in different ways:
* In the cluster filesystem at `/var/log/pods/` or `/var/logs/containers/`.
* Using [kubectl logs](https://kubectl.docs.kubernetes.io/pages/container_debugging/container_logs.html).
* Querying aggregated logs with grafana, see below.
## Central log aggregation
We use [promtail](https://github.com/grafana/loki/tree/master/docs/clients/promtail),
[Loki](https://grafana.com/oss/loki/) and [grafana](https://grafana.com/) for
easy access of aggregated logs.
The [Loki documentation](https://github.com/grafana/loki#documentation) is a
good starting point how this setup works, and the [Using Loki in Grafana](https://grafana.com/docs/grafana/latest/features/datasources/loki/)
gets you started with querying your cluster logs with grafana.
## Backup
Please take care to backup the following locations:
......
---
apiVersion: helm.fluxcd.io/v1
kind: HelmRelease
metadata:
name: loki-stack
namespace: oas
annotations:
flux.weave.works/automated: "false"
spec:
releaseName: loki-stack
chart:
repository: https://grafana.github.io/loki/charts
name: loki-stack
version: 0.24.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment