refactor(dns): set source of dns domain on fw.yaml

This commit is contained in:
il
2026-06-29 11:46:53 +09:00
parent 5ccb60bd2a
commit 88e85fff56
43 changed files with 606 additions and 406 deletions
@@ -179,6 +179,13 @@ loki.relabel "journal_logs" {
target_label = "job"
replacement = "systemd-journal"
}
rule {
source_labels = ["__journal__systemd_unit", "__journal__systemd_user_unit", "__journal_syslog_identifier"]
separator = ";"
regex = ";;(ssh|sshd|sudo|su|login|polkitd|cron|crond)"
target_label = "job"
replacement = "$1"
}
rule {
source_labels = ["__journal__systemd_unit"]
regex = "(.+)\\.service"
@@ -197,12 +204,6 @@ loki.relabel "journal_logs" {
target_label = "job"
replacement = "$1.socket"
}
rule {
source_labels = ["__journal_syslog_identifier"]
regex = "(.+)"
target_label = "job"
replacement = "$1"
}
rule {
source_labels = ["job"]
regex = "user@\\d+"
@@ -279,6 +280,44 @@ loki.relabel "journal_logs" {
loki.process "journal_parser" {
forward_to = [loki.write.loki.receiver]
stage.match {
selector = "{job=~\".+\"} |~ \"container health_status .*health_status=\""
stage.regex {
expression = "container (?P<podman_event>health_status) (?P<container_id>[^ ]+)"
}
stage.regex {
expression = "name=(?P<container_name>[^,\\)]+)"
}
stage.regex {
expression = "health_status=(?P<health_status>[^,\\)]+)"
}
stage.labels {
values = {
job = "container_name",
service_name = "container_name",
podman_event = "",
health_status = "",
}
}
stage.structured_metadata {
values = {
container_id = "",
}
}
stage.static_labels {
values = {
level = "info",
}
}
}
stage.match {
selector = "{podman_event=\"health_status\",health_status=\"unhealthy\"}"
stage.static_labels {
values = {
level = "error",
}
}
}
stage.match {
selector = "{level!=\"fatal\", job!~\"loki|prometheus|grafana\"} |~ \"(?i)(fatal|critical|panic|uncaught|unhandled|assertion failed|out of memory|\\bboom\\b|killed process)\""
stage.static_labels {