Compare commits

...
Author SHA1 Message Date
p4u1 186a6d51fa fix(loki): drop logs older than 160 hours 2026-11-17 21:32:53 +01:00
fauno e11237ecc6 feat: codeowners (#61)
Reviewed-on: #61
Reviewed-by: ammaratef45 <ammaratef45@proton.me>
Reviewed-by: Danny Groenewegen <247+dannygroenewegen@noreply.git.coopcloud.tech>
2026-11-08 14:41:16 +00:00
fauno 9b9a9f886f feat: codeowners 2026-11-05 15:43:18 -03:00
3 changed files with 15 additions and 5 deletions
+2
View File
@@ -1 +1,3 @@
.*smartctl.* @fauno
compose\.docker-events\.yml @simon
* @coop-cloud/monitoring-ng-maintainers
+1 -1
View File
@@ -11,7 +11,7 @@ export MATRIX_ALERTMANAGER_CONFIG_VERSION=v2
export MATRIX_ALERTMANAGER_ENTRYPOINT_VERSION=v1
export GF_ALERTS_NODE_VERSION=v5
export GF_ALERTS_LOKI_VERSION=v5
export CONFIG_ALLOY_VERSION=v3
export CONFIG_ALLOY_VERSION=v4
export GF_ALERTS_TRAEFIK_VERSION=v1
# migrates secrets from old names to new names by reading values from the
+12 -4
View File
@@ -306,7 +306,7 @@ loki.source.docker "docker" {
host = "unix:///var/run/docker.sock"
targets = discovery.relabel.docker.output
labels = {"app" = "docker"}
forward_to = [loki.write.loki.receiver]
forward_to = [loki.process.drop_old.receiver]
}
// JOURNALD: reads the systemd journal binary log directly.
@@ -338,7 +338,7 @@ loki.relabel "journal" {
// drop network db stats (15-20% of kernel logs)
loki.process "journal" {
forward_to = [loki.write.loki.receiver]
forward_to = [loki.process.drop_old.receiver]
stage.drop {
expression = ".*NetworkDB stats.*"
@@ -363,7 +363,7 @@ loki.process "syslog_files" {
stage.static_labels {
values = { job = "syslog" }
}
forward_to = [loki.write.loki.receiver]
forward_to = [loki.process.drop_old.receiver]
}
{{ end }}
@@ -390,10 +390,18 @@ loki.source.syslog "syslog" {
}
relabel_rules = loki.relabel.syslog.rules
forward_to = [loki.write.loki.receiver]
forward_to = [loki.process.drop_old.receiver]
}
{{ end }}
loki.process "drop_old" {
forward_to = [loki.write.loki.receiver]
stage.drop {
older_than = "160h"
}
}
loki.write "loki" {
endpoint {
url = "{{ env "LOKI_PUSH_URL" }}"