Dashboards Not Working Under Docker / Vanilla K8s
The following dashboards don't work under a vanilla k8s running under docker:
- policies
- preflight
- violations
This is caused by the default pod log formats used in CRI vs Docker runtimes. Docker uses JSON-file format where-as k3d/k3s uses CRI format.
One fix that appears to get the preflight dashboard working is adding the docker pipeline to promtail:
diff --git a/chart/values.yaml b/chart/values.yaml
index 907d8bf..9825c63 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -477,6 +477,7 @@ config:
# @default -- See `values.yaml`
snippets:
pipelineStages:
+ - docker: {}
- cri: {}
- labeldrop:
- filename
This did not fix the other two dashboards.