2022-04-16 08:13:51 +00:00
|
|
|
local app = import "../../_templates/argocd_app.libsonnet";
|
2022-04-04 16:24:35 +00:00
|
|
|
|
|
|
|
[
|
2022-04-16 08:13:51 +00:00
|
|
|
app + {
|
2022-04-04 16:24:35 +00:00
|
|
|
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"],
|
2022-04-04 16:24:35 +00:00
|
|
|
values:: |||
|
2022-04-11 09:02:57 +00:00
|
|
|
loki:
|
|
|
|
isDefault: false
|
2022-04-04 16:24:35 +00:00
|
|
|
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
|
|
|
|
|||
|
|
|
|
}
|
|
|
|
]
|