baseline/manifests/monitoring/loki-stack.jsonnet

40 lines
977 B
Text
Raw Normal View History

2022-04-16 08:13:51 +00:00
local app = import "../../_templates/argocd_app.libsonnet";
[
2022-04-16 08:13:51 +00:00
app + {
name:: "loki",
namespace:: "metrics",
chart:: "loki-stack",
2022-04-16 08:13:51 +00:00
repo:: "https://grafana.github.io/helm-charts",
2023-06-26 08:45:39 +00:00
version:: "2.9.*",
2022-04-16 08:43:46 +00:00
syncOptions:: ["CreateNamespace=true", "Force=true"],
values:: |||
loki:
isDefault: false
promtail:
extraScrapeConfigs:
- job_name: journal
journal:
path: /var/log/journal
max_age: 12h
labels:
job: systemd-journal
relabel_configs:
- source_labels:
- '__journal__systemd_unit'
target_label: 'unit'
- source_labels:
- '__journal__hostname'
target_label: 'hostname'
extraVolumes:
- name: journal
hostPath:
path: /var/log/journal
extraVolumeMounts:
- name: journal
mountPath: /var/log/journal
readOnly: true
|||
}
]