Logs (experimental)¶
NAIS comes with Grafana Loki installed which is a log collection system integrated with Grafana and very similar to Prometheus in design. No configuration is needed to get started from the application side.
Logs in Loki are accessible through a Grafana datasource and can be used to create dashboards and alerts. There is one loki datasource per environment, and the datasource name is <environment>-loki
.
graph LR
subgraph Management Cluster
loki-.-grafana
end
subgraph Dev Cluster
dev-pod-a[pod] --stdout--> dev-promtail[promtail]
dev-pod-b[pod] --stdout--> dev-promtail[promtail]
dev-promtail[promtail] --> loki
end
subgraph Prod Cluster
prod-pod-a[pod] --stdout--> prod-promtail[promtail]
prod-pod-b[pod] --stdout--> prod-promtail[promtail]
prod-promtail[promtail] --> loki
end
Last update:
November 29, 2023
Created: November 29, 2023
Created: November 29, 2023